Examveda
Examveda

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

D. ValueNotFoundError

Answer: Option C

Solution(By Examveda Team)

In the above code snippet, p is not defined. Hence, it gives a ReferenceError.

This Question Belongs to Javascript >> Classes And Modules

Join The Discussion

Related Questions on Classes and Modules