JavaScript syntax: Difference between revisions

Content deleted Content added
Dkohen (talk | contribs)
Dkohen (talk | contribs)
m Scoping and hoisting: Correction to previous edit
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 by declaring the variable using the <code>let</code> keyword.
 
===Declaration and assignment===