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 is the prototype represents in the following JavaScript code snippet?
function f() {};

What is the prototype represents in the following JavaScript code snippet?
function f() {};
a) Function f
b) A custom constructor
c) Prototype of a function
d) Not valid

Answer: b
Explanation: All object instances have a constructor property that point to the constructor function that created it. A custom constructor is a constructor which requires no arguments and is created automatically by the compiler at the time of object creation if not created by the user.

Join The Discussion