Consider the following code snippet:
const name = 'John';
{
const name = 'Jane';
console.log(name);
}
console.log(name);
What will be the output of the console.log statements?
Consider the following code snippet:
const name = 'John';
{
const name = 'Jane';
console.log(name);
}
console.log(name);
What will be the output of the console.log statements?