Function JavaScript Tutorial

Syntax

function.prototype.property
    function.prototype.method
The prototype property refers to the object that serves as the prototype from which classes are created.
prototype allows you to add new properties of methods to an existing class by adding them to the prototype associated with the constructor of that class.