Do you know the scope of the (var) keyword differs in the Function and Block scopeโ๐ ๐
Jan 8, 2023 ยท 1 min read ยท 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...
Join discussion