Deloitte interview question

What is hoisting in JavaScript?

Interview Answer

Anonymous

9 Jun 2025

Hoisting is JavaScript's default behavior of moving declarations (but not initializations) to the top of the current scope.