Content deleted Content added
ZeusFourth (talk | contribs) |
|||
Line 97:
Function statements, whose effect is to declare a variable of type <code>Function</code> and assign a value to it, are similar to variable statements, but in addition to hoisting the declaration, they also hoist the assignment – as if the entire statement appeared at the top of the containing function – and thus forward reference is also possible: the ___location of a function statement within an enclosing function is irrelevant.
Be sure to understand
<syntaxhighlight lang="javascript">
var func = function() { .. } // will NOT be hoisted
|