Concept
Hoisting 0
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during the compilation phase, allowing them to be referenced before they are declared in the code. This behavior can lead to unexpected results if not properly understood, as only the declarations are hoisted, not the initializations.
Relevant Degrees