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