37
Advanced JavaScript Series - Part 2: Execution Context and Call Stack

Note-
window
object and in Node.js we can find the same in the form of the global
object.
1) Global Execution Context-
window
object.this
keyword to help reference the window
object.undefined
.

2) Functional Execution Context-
3) Eval Execution Context-
eval
function has its own executional context.1) Creation Phase-
Task 1- Creation of Activation/ Variable object
- The activation object is like a memory unit/ container for storing the variables, objects etc related to a function.
Task 2- Creation of Scope Chain
- Scope chain is the list of variables and objects created within a particular function.
- Once the scope chain is formed, it helps initialize
value of
this
.
2) Execution Phase-

37