The prototype property allows you to add properties and methods to any object.
A prototype property is automatically created for every function, to allow for the possibility that the function will be used as a constructor
(Every function in Javascript is an instance of the Function object)
JavaScript prototype Property
No comments:
Post a Comment