1.

A linkage of series of prototype objects is called as ________(a) prototype stack(b) prototype chain(c) prototype class(d) prototypesI had been asked this question in a job interview.Origin of the question is Object Attributes and Serialization in chapter Lexical Structures of JavaScript

Answer»

Right option is (b) prototype chain

Easy EXPLANATION: Consider an example, Date.prototype inherits PROPERTIES from OBJECT.prototype, so a Date object created by new Date() inherits properties from both Date.prototype and Object.prototype. This linked SERIES of prototype objects is known as prototype chain.



Discussion

No Comment Found

Related InterviewSolutions