?
Consider the following code snippet
Consider the following code snippet
console.log(p)
If p is not defined, what would be the result or type of error?
console.log(p)
Answer & Solution
Correct Answer:
Option
C
In the above code snippet, p is not defined. Hence, it gives a ReferenceError.
Join the Discussion
Login to post a comment or share your explanation.
Login