The temporal dead zone (TDZ) is the interval after entering a scope but before initializing a let or const binding. Accessing the binding during this interval throws a ReferenceError, making it a common JavaScript interview test of hoisting and execution phases. section 3.1
Hoisting contrast
function greet() { console.log(message); let message = "Hello, world!"; } greet(); This throws ReferenceError: Cannot access 'message' before initialization. let is hoisted but remains uninitialized in the TDZ. By contrast, var is initialized to undefined during hoisting, so an earlier access produces undefined. Removing strict mode does not change TDZ behavior. section 3.1
Interview follow-ups commonly test whether you can:
- Compare hoisting for var, let, and const. section 3.1
- Explain how scope and execution phases affect variable access. section 3.1

