JavaScript syntax: Difference between revisions

Content deleted Content added
SealFan23 (talk | contribs)
relevant wikilinks
Dkohen (talk | contribs)
Line 103:
</syntaxhighlight>
 
Block scoping can be produced by wrapping the entire block in a function and then executing it — this is known as the [[immediately-invoked function expression]] pattern. Or- or by declaring the variable using the <code>let</code> keyword.
 
===Declaration and assignment===