Multiple choice javascript

Whicj best describe void?

  1. A method

  2. A function

  3. An operator

  4. A statement

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Void is an operator in JavaScript, not a method, function, or statement. It evaluates an expression and returns undefined. Option C is correct. Options A, B, and D incorrectly classify void as a method, function, or statement respectively.