3 ms·
{ // Start of block statement. const foo = "a" + 2; // Only available inside block statement. console.log(foo); // "a2" } // End of block statem
by mLuby 5y ago
{ // Start of block statement.
const foo = "a" + 2; // Only available inside block statement.
console.log(foo); // "a2"
} // End of block statement.
console.log(foo); // Uncaught ReferenceError: foo is not defined