ExamVeda
Login
Home
This question belongs to Javascript Classes And Modules
Classes and Modules
?

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 & Solution
Correct Answer: Option A
The above code snippet will flash an error. Attempts to alter the value or re-declaration causes errors.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.