" Hoisting " in JavaScript.
Let's see an example first:
var x ;
x = 50;
console.log(x);
// Output: 50
Another Example :
x = 50;
console.log(x);
var x ;
// Output: 50
Why in both the case output is 50. For this, you will have to understand Hoisting.
What do you understand by H...
vanshsharma.hashnode.dev3 min read