Content deleted Content added
m →Nested functions: Typo fixing, replaced: the the → the using AWB |
No edit summary |
||
Line 14:
</source>
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> var x</code> statement, while <code>inner</code> doesn't. Therefore, x is non-local to <code>inner</code>:
<source lang=javascript>
function outer(){
|