Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What would be the result or type of error if p is not defined in the following JavaScript code snippet?
console.log(p)

What would be the result or type of error if p is not defined in the following JavaScript code snippet?
console.log(p)
a) zero
b) null
c) Reference Error
d) Value not found Error

Answer: c
Explanation: Console.log() is a predefined function in javascript which is used to print data or message on the console. If the argument of the console.log is not defined it will give a reference error.

Join The Discussion