Why `a = 10` Isn't Hoisting: Implicit Globals in JavaScript
Look at this code:
a = 10;
console.log("This is a hoisted variable: " + a); // 10
No var, let, or const and it still works. Many developers call this hoisting, but that is not what is happening. It i
harshit-javascript.hashnode.dev4 min read