Scopes of the var and let Keywords var i = 'global scope' function checkScope() { let i = 'function scope'; console.log(i); // function scope if (true) { i = 'block scope'; console.log(i); // block scope } console.log(i); // block...
Markdown supported · ⌘↵ to post
No responses yet.