JavaScript Hoisting
Have you heard the name JavaScript Hoisting? If not, let me show you some magic.
What will the output of this code:
var x = 7
function myName() {
console.log("My name is Suvadeep");
}
myName();
console.log(x);
It's easy, right?
Now if I change ...
deepsuva.hashnode.dev2 min read