From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript String Object
The constructor property is a reference to the function that created the object.
| object.constructor |
ExampleHow we can use the constructor property:
The output of the code above will be:
Try it yourself » |
JavaScript String Object
From http://www.w3schools.com (Copyright Refsnes Data)