Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     isPrototypeOf() method

    B.

     equals() method

    C.

     === operator

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

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


Be The First To Comment