JavaScript·Intermediate·Conceptual·1 min read
What does hoisting actually mean?
Short interview answer
Hoisting is informal shorthand for declaration instantiation before statement evaluation. Different declarations are initialized differently: function declarations receive their function value, var receives undefined, while let, const, and class remain uninitialized until their declaration is evaluated.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.