hoisting #5

node v10.16.3
version: master
endpointsharetweet
// Initialize x in the global scope let x = true; function hoist() { // Initialize x in the function scope if (3 === 4) { let x = false; } console.log(x); } hoist();
Loading…

no comments

    sign in to comment