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).
Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad