Definition
In JavaScript is a behavior in which a function or a variable can be used before declaration.
Types of Hoisting
Variable Hoisting : Only variable declared with var is hoisted (not let and const)
Function Hoisting : Only Simple functions is hoisted (not function expressions)
Top comments (0)