Consider the following code snippet
const pi=3.14;
var pi=4;
console.log(pi);
What will be the output for the above code snippet?
const pi=3.14;
var pi=4;
console.log(pi);
A. This will flash an error
B. Prints 4
C. Prints 3.14
D. Ambiguity
Answer: Option A

Join The Discussion