Explain JavaScript execution contexts, scope and hoisting
viaGlassdoor
Problem Explain JavaScript execution contexts, scope, and hoisting.
Be ready to discuss
- Global vs function execution context; the creation and execution phases.
- The scope chain and lexical scoping.
- Hoisting of variable and function declarations.
- var vs let/const and the temporal dead zone.
asked …