Chapter 15: Scope

Learning Objectives

Upon completing all the content in this chapter, you should be able to do the following:

  1. Understand the contexts in which a variable may be declared: block/local, global,execution context
  2. Understand and properly declare variables in the best context for the intended use
  3. Describe shadowing, and how it affects variable visibility
  4. 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.


  1. scope
  2. local scope
  3. global scope
  4. execution context

Using Scope

  1. shadowing
  2. variable shadowing
  3. variable hoisting