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 ...
Jan 9, 20232 min read
