Sail E0 Webinar
Question
Consider the following code snippetconsole.log(p)If p is not defined, what would be the result or type of error?
Options:
A .  Zero
B .  Null
C .  ReferenceError
D .  ValueNotFoundError
Answer: Option C


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



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers