Immediately invoked function expression: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
m Reverted edits by Pingdpk (talk) (HG) (3.4.10)
Line 70:
getValue; // 1
</syntaxhighlight>
 
Note: It is now invoked as ''getValue'' without parentheses. Because the output of IIFE is just a variable but not a function.
 
This is equivalent to the following code:
Line 85 ⟶ 83:
getValue; // 1
</syntaxhighlight>
 
Note: Here also, it is now invoked as ''getValue'' without parentheses. Because the output of IIFE is just a variable but not a function.
 
=== Establishing private variables and accessors ===