-
JavaScript Tutorial – what is prototype object
Object keeps different properties and some may be methods also. Every object is associated with another prototype object. Object inherits all properties from the prototype object. {} empty object inherits properties from it’s prototype object Object.prototype. [] empty array inherits properties from it’s prototype object Array.prototype. Object.getPrototypeOf(o) returns prototype object of object o. new Object…