Which best describes void?
-
A method
-
A function
-
A statement
-
An operator
D
Correct answer
Explanation
In JavaScript, void is an operator that evaluates the expression next to it and returns undefined. It is not a method, function, or a flow-control statement.