Examveda
Examveda

To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the

A. isPrototypeOf() method

B. equals() method

C. === operator

D. none of the mentioned

Answer: Option A

Solution(By Examveda Team)

To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the isPrototype() method. To find out if p is the prototype of o write p.isPrototypeOf(o).

This Question Belongs to Javascript >> Basic And Variables

Join The Discussion

Related Questions on Basic and Variables