Q53
Consider the following code snippet console.log(p) If p is not defined, what would be the result or type of error?
A.
Zero
B.
Null
C.
ReferenceError
AnswerD.
ValueNotFoundError
Answer: Option C
Solution
Answer: Option C
Solution:
In the above code snippet, p is not defined. Hence, it gives a ReferenceError.