Chapter 15: Scope
Learning Objectives
Upon completing all the content in this chapter, you should be able to do the following:
- Understand the contexts in which a variable may be declared: block/local, global,execution context
- Understand and properly declare variables in the best context for the intended use
- Describe shadowing, and how it affects variable visibility
- Explain variable hoisting
Key Terminology
Here is a list of key terms for this chapter broken down by the page the term first appears on. You should make note of these terms and their definitions.
Introduction
- scope
- local scope
- global scope
- execution context
Using Scope
- shadowing
- variable shadowing
- variable hoisting