Creating "Execution Context"

Two

Phases

1. Creation Phase

  1. The Scope Chain is Created
  2. Variables, Functions, etc are added to the Global Object or the Variable Object.
    • values are not assigned to the variables, this happens in the execution phase. 
  3. The "this" keyword binding is determined

2. Execution Phase

  1. Assigns values to Variables, Functions, etc.
  2. Executes (runs) the code
Made with Slides.com