void
In most C-like languages, void
is a type. In
JavaScript, void
is a prefix operator that always
returns undefined
. JSLint does not expect to see
void
because it is confusing and not very
useful.
Get JavaScript: The Good Parts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.