Quantcast
Channel: User Walter Rumsby - Stack Overflow
Viewing all articles
Browse latest Browse all 39

Answer by Walter Rumsby for Difference between (function(){})(); and function(){}();

$
0
0

Peter Michaux discusses the difference in An Important Pair of Parens.

Basically the parentheses are a convention to denote that an immediately invoked function expression is following, not a plain function. Especially if the function body is lengthy, this reduces surprises,


Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>