Prevents an expression from returning a value.
- expression
Required. Any expression.
The void operator evaluates its expression, and returns undefined. It is most useful in situations where you want an expression evaluated but do not want the results visible to the remainder of the script.
Version 2
Concepts