The Basics of Scope in JavaScript



Whether you’re coming to JavaScript from another language, or you’re learning JavaScript as your first language, the way scope works — that is, when and where your variables are defined — might surprise you.

In this instalment of Head First JavaScript Programming Teasers, you’ll learn about the basics of scope, why it’s important to limit the number of global variables, how functions create scope, what “hoisting” is, and how to know where your variables are defined.

You can buy Head First JavaScript Programming here
http://goo.gl/91YPqn

– Don’t miss an upload! Subscribe! http://goo.gl/szEauh –
Stay Connected to O’Reilly Media. Visit http://oreillymedia.com
Sign up to one of our newsletters – http://goo.gl/YZSWbO

Follow O’Reilly Media:
http://plus.google.com/+oreillymedia
https://www.facebook.com/OReilly


source

Reply


Build A Site Info