Trung Minh
New member
What will be the output of the following JavaScript code?
A. This will flash an error
B. Prints 4
C. Prints 3.14
D. Ambiguity
Code:
const pi=3.14;
var pi=4;
console.log(pi);
B. Prints 4
C. Prints 3.14
D. Ambiguity