Execution context (EC)
is defined as the environment in which JavaScript code is executed.
Execution context stack (ECS)
: Execution context stack is a stack data structure to store all the execution stacks created while executing the JS code.
This topic is advanced, but a clear understanding of Execution Context and Execution Context Stack helps you in understanding how JavaScript codes are executed.
- JavaScript: What Is The Execution Context? What Is The Call Stack?
- Execution context, Scope chain and JavaScript internals
- What is the Execution Context & Stack in JavaScript?
- Understanding Execution Context and Execution Stack in JavaScript
- JavaScript, the core
- The Ultimate Guide to Hoisting, Scopes, and Closures in JavaScript
- Execution context and the call stack — visually illustrated by a slice of tasty cake