The personal ramblings of an early participant in meaningless online rambling. Family (especially children), PHP, Linux, and occasionally PS3 games are discussed.

Javascript Scope Resolution

I ran into some problems understanding a script that I was refactoring and hit Google up for "Javascript Scope Resolution".  The search  results were very bad, many were not even related to Javascript.

Please allow me to inject some more appropriate results:

- Entry level examples - local and global scope
- Inner function scope and how to transfer scope through closures
- Changing context with the function methods apply() and call():
- Simple examples that show how context changes depending on instantiation, this, and var usage
- Prototype .bind(), ExtJs() .createDelegate(), Mootools .create(), jquery .proxy()
- A lengthy bit on closures
[Release Update - I didn't see any value in posting this, so it remained a draft.  I just checked again and the majority of search results are C and PHP related.  Blogs away! ]

0 comments: