From http://www.w3schools.com (Copyright Refsnes Data)
Complete Math Object Reference
The prototype property allows you to add properties and methods to an object.
| object.prototype.name=value |
ExampleIn this example we will show how to use the prototype property to add a property to an object:
The output of the code above will be:
Try it yourself » |
Complete Math Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)