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

Consider the following code snippet
console.log(p)
If p is not defined, what would be the result or type of error?

Answer & Solution
Correct Answer: Option C
In the above code snippet, p is not defined. Hence, it gives a ReferenceError.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.