IQ InterviewQuestions Ask Question

What is hoisting in JavaScript?

Asked by karan shegal · 2025-12-15 13:29:00 · Javascript
What is hoisting in JavaScript?

Answers (1)

Answered by Anonymous · 2025-12-15 13:29:34
Hoisting is JavaScript’s behavior of moving declarations to the top of the scope during compilation. Function declarations are fully hoisted, whereas variables declared with var are hoisted but initialized as undefined. Variables declared using let and const are hoisted but remain in the temporal dead zone...

Your Answer