What is hoisting in js?

What is hoisting in js?

1 Like

Hoisting is one of the misunderstood topics of js, Actually, it was developed for some other purpose but later on become a most misunderstood topic in js, So what is Hoisting,

In simple words, using variables before its declaration. It sounds weird how interpreter or just-in-time compilation moves the declarations of functions or variables or classes to the top of their scope.
please refer to this chart, super important

Now Here is question for You write a functional expresion which will add two numbers with var keyword but call it above the function ? Tell me the output in the thread