Google News
logo
UI Developer - Interview Questions
What is JavaScript Hoisting?
Hoisting is a mechanism where assigned variables and function declarations get moved or “hoisted” to the top of their scope before executing code. Therefore, no matter where functions and variables are declared, they get moved to the top of their range regardless of whether their scope is local or global.
Advertisement