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
AnswerB.
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).