Q1. Consider the JavaScript code: if (true) { let count = 5; } console.log(count); What is the most accurate result in a standard JavaScript environment?
Explanation
let and const declarations are lexical declarations in ECMAScript. A let variable declared inside a block is bound to that block's lexical environment, so code outside the braces cannot access count.
