Hoisting describes how JavaScript makes declarations available according to scope before execution reaches their source position. Interview questions use it to test execution phases, variable resolution, and the difference between var hoisting and the Temporal Dead Zone for let and const. section 3.1
A Temporal Dead Zone failure
In strict mode, calling greet logs message before its declaration: function greet() { console.log(message); let message = "Hello, world!"; } greet(); This throws ReferenceError: Cannot access 'message' before initialization. Explain the creation and execution phases rather than treating hoisting as simple textual movement. section 3.1


