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...
Markdown supported Β· ββ΅ to post
No responses yet.