Deloitte Interview Question

What is hoisting in JavaScript?

Interview Answer

Anonymous

Jun 9, 2025

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