Consider the following code snippet:
const PI = 3.14159;
{
const PI = 3.14;
console.log(PI);
}
console.log(PI);
What will be the output of the console.log statements?
Consider the following code snippet:
const PI = 3.14159;
{
const PI = 3.14;
console.log(PI);
}
console.log(PI);
What will be the output of the console.log statements?