Tag Archives: advanced

Javascript Scope Gotcha

I just learned something very surprising about scope in Javascript from John Resig: properties defined within the context of functions are actually placed in the global scope at the time the functions are called as well as locally in each function. Continue reading

Rate this:

Posted in Programming, Web | Tagged , | Leave a comment