Multiple choice technology web technology

which best describe void?

  1. method

  2. function

  3. statement

  4. operator

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

void is a unary operator in JavaScript that evaluates its expression and returns undefined. It is not a method, function, or statement - it's specifically an operator used when you want to execute a side effect without returning a value.