Discussion :: Javascript - CS
-
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?
Answer : Option A
Explanation :
The above code snippet will flash an error. Attempts to alter the value or re-declaration causes errors.
Be The First To Comment