From http://www.w3schools.com (Copyright Refsnes Data)
Complete Math Object Reference
The constructor property is a reference to the function that created an object.
| object.constructor |
Example 1In this example we will show how to use the constructor property:
The output of the code above will be:
Try it yourself » |
Example 2In this example we will show how to use the constructor property:
The output of the code above will be:
Try it yourself » |
Complete Math Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)