Content deleted Content added
Added {{More citations needed}} tag |
m →=== Nested functions ===: fixed typo |
||
Line 19:
</syntaxhighlight>
In JavaScript, the locality of a variable is determined by the closest <code>var</code> statement for this variable. In the following example, <code>x</code> is local to <code>outer</code> as it contains a <code>
<syntaxhighlight lang="javascript">
function outer() {
|