Do you know the scope of the (var) keyword differs in the Function and Block scopeโ๐ ๐
Let's talk about the var keyword declared in the global scope โ
function foo() {
console.log(a);
}
๐ var a = 2;
๐ foo();
๐ When Var is declared global then it is the same as it is inside the global window object. ๐ right ๐
๐ So due to the globa...
ajmalali.hashnode.dev1 min read