947 Views
Prototypes in JavaScript are the mechanism to share common functionalities between objects. Nearly all objects in JavaScript are instances of Object . A typical object inherits all the properties and methods from Object.prototype . In simple terms, prototype is an object from where JavaScript objects inherit methods and properties from.
0 comments