InterviewSolution
Saved Bookmarks
| 1. |
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) ==opertor |
|
Answer» Right option is (a) isPrototypeOf() method To explain I would say: Prototype is a global property which is available with almost all the objects. 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). |
|