JavaScript: Difference between revisions

Content deleted Content added
reverting spam from Nicki jon
m Syntax: grammar.
Line 258:
</syntaxhighlight>
 
[[Immediately-invoked function expression]]s are often used to create modules, as before ECMAScript 2015 there was notno built-in construct in the language. Modules allow gathering properties and methods in a namespace and making some of them private:
 
<syntaxhighlight lang="javascript">