What is hoisting in JavaScript?
Question :
What is hoisting in JavaScript?
Hoisting is a JavaScript behavior where variable and function declarations are moved to the top of their respective scope during the compilation phase. However, only the declarations are hoisted, not the initializations.