Introduction to JavaScript: Understanding Scope

added by JavaScript Kicks
9/9/2014 10:58:25 AM

142 Views

Variable scope can be one of the more confusing aspects of JavaScript: placing variables at the start of a script, where they seem to make the most sense, is strongly inadvisable, yet putting them in other places sometimes causes them not to work. So what’s the story?


0 comments