The prototype is an object that is associated with every functions and objects by default in JavaScript, where function's prototype property is accessible and modifiable and object's prototype property is not visible.


Every function includes prototype object by default.


Use of Prototype






The following diagram illustrate about the prototypes.