I'm so confused about how
Void is an operator that evaluate an expression without returning a value, but by executing that script for example:
After clicking on the link, the browser shows the value 2, which mustn't be shown since the evaluated expression (
alert(1+1)) shouldn't return a value due to being an operand of the
Can someone clear it up for me please?.