Content deleted Content added
getValue becomes a variable (not a function) when it is assigned by a IIFE |
No edit summary Tag: Reverted |
||
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 83 ⟶ 85:
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 ===
|