Content deleted Content added
be clear with the naming in your code Tags: Mobile edit Mobile app edit iOS app edit |
m →Declaration and assignment: Fix grammar |
||
Line 114:
===Declaration and assignment===
Variables declared outside a scope are
When JavaScript tries to '''resolve''' an identifier, it looks in the local scope. If this identifier is not found, it looks in the next outer scope, and so on along the ''scope chain'' until it reaches the ''global scope'' where global variables reside. If it is still not found, JavaScript will raise a <code>ReferenceError</code> exception.
|