What will be the output of the following JavaScript code? [code] const pi=3.14; var pi=4; console.log(pi); [/code]

Trung Minh

New member
What will be the output of the following JavaScript code?
Code:
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
 

Tìm kiếm

Back
Top