Immediately invoked function expression: Difference between revisions

Content deleted Content added
The expression "getValue" is a function that returns 1. "getValue()" returns 1.
Evaluation context: also fix earlier code
Line 72:
v = 2;
 
getValue(); // 1
</syntaxhighlight>