What are JavaScript Prototypes?

added by JavaScript Kicks
12/19/2019 1:04:14 PM

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