JavaScript card review1 min read
easy

What is hoisting in JavaScript?

Hoisting is JavaScript's behavior of moving variable and function declarations to the top of their scope during the compilation phase. Variables declared with var are hoisted and initialized with undefined, while let and const are hoisted but remain in the Temporal Dead Zone until their declaration is reached.

Share this Resource

Spread the knowledge with other engineering candidates.

Was this card helpful?

Help us rank high-quality interview preparation materials.

Accelerate Your Prep

Get instant feedbacks, dynamic voice simulations, and keyword scorecard matchers.

JB

Jeevan Bhargav

Audited by Creator

This answer is calibrated for technical interviews. Verify benchmarks in local sandboxes before deploying.