NIELIT O Level Exam

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

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 isPrototypeOf() मेथड

B. equals() method equals() मेथड

C. === operator === ऑपरेटर

D. ==opertor ==ऑपरेटर




Correct Answer is :

A. isPrototypeOf() method



Explanation
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).
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad