From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Array Object
The constructor property returns a reference to the array function that created the 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 » |
JavaScript Array Object
From http://www.w3schools.com (Copyright Refsnes Data)