Prototype in JavaScript

Prototype is an object used as a template from which to get the initial properties for a new object.
Any object can specify its own properties, either when you create it or at run time. In addition, any object can be associated as the prototype for another object, allowing the second object to share the first object’s properties

Leave a Reply

Your email address will not be published. Required fields are marked *