The Basics of Scope in JavaScript

preview_player
Показать описание
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

Follow O'Reilly Media:
Рекомендации по теме