JavaScript Hoisting
In this tutorial, we will learn about JavaScript variable hoisting and function hoisting. Before we do that, let’s brush up on variable declaration and initialization.
Declaration of variable: When we declare variable, we tell the compiler about the name of the…