Consider the following code snippet:
const x = 5;
{
let x = 10;
console.log(x);
}
console.log(x);
What will be the output of the second console.log statement?
Consider the following code snippet:
const x = 5;
{
let x = 10;
console.log(x);
}
console.log(x);
What will be the output of the second console.log statement?