Learn about JavaScript void operator and when you might use it

The JavaScript void keyword is an operator that tells JavaScript NOT to return the evaluation result of an expression.

For example, the following expression between 2 + 2 will return 4;

let num = 2 + 2;
console.log(num); // 4

#javascript #programming #developer

Here's What JavaScript:void(0) Actually Means
1.60 GEEK