Vidyalelo
JavaScript · Q55

Basic And Variables

Programming · JavaScript · question 55

Q55

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
Answer
B.
equals() method
C.
=== operator
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
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).