Object.prototype is used to inherit properties and methods to the Constructor method, it may be overridden. We can use any constructor to create the object of another type with the help of Object.create() method and assign to the new constructor prototype.
source http://www.c-sharpcorner.com/article/properties-of-object-prototype-in-javascript/
No comments:
Post a Comment