Void keywords in JavaScript
void is an important keyword in JavaScript that can be used as a unary operator before its single operand, which can be in any type. This operator defines an expression to be evaluated without returning a value.
void is an important keyword in JavaScript that can be used as a unary operator before its single operand, which can be in any type. This operator defines an expression to be evaluated without returning a value.
Syntax
The syntax of void can be one of two types:
Maybe you are interested
- Objects in JavaScript
- Tutorial for creating slideshows in JavaScript with 3 easy steps
- 7 Framework JavaScript for mobile application development
- Introduction to 2D Array - 2-dimensional array in JavaScript
- 12 extremely useful tricks for JavaScript programmers
- Arrays and objects in JavaScript are like stories and newspapers!