Multiple choice technology web 2.0

Which best describes void?

  1. A method

  2. A function

  3. A statement

  4. An operator

Reveal answer Fill a bubble to check yourself
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.