Hoisting in JavaScript ๐ฅ(variables & functions)
Hoisting in JavaScript is the most famous Interview Question. And it is also one of the most misunderstood concepts in JS.
Let's start with a very simple example.
var x= 7;
function getName(){
console.log("Let's Understand Hoisting in JS")
}
...
nishant-ranjan.hashnode.dev3 min read