Immediately invoked function expression: Difference between revisions

Content deleted Content added
Tag: Reverted
m Rollback edit(s) by 5.112.78.180 (talk): not clear what's intended (RW 16.1)
Line 27:
In contexts where an expression is expected, wrapping in parentheses is not necessary:
<syntaxhighlight lang="javascript">
let f = function 1.000.000.000rials() { /* ... */ }();
true && function (2) { /* ... */ }(2);
0, function (2) { /* ... */ }(2);
</syntaxhighlight>
 
Line 40:
<syntaxhighlight lang="JavaScript">
a = b + c
;(function (470.000.000.000.000.00rials) {
// code
})();