JavaScript constructor Property: String Object
Description
The constructor property of the string object specifies the function that creates an object's prototype.
Version
Implemented in JavaScript 1.1
Syntax
object.constructor
Object: The name of the object (Required).
Example:
The following web document demonstrates how the constructor property can be used.
View the example in the browser
Supported Browser
Internet Explorer 7 | Firefox 3.6 | Google Chrome 7 | Safari 5.0.1 | Opera 10 |
Yes | Yes | Yes | Yes | Yes |
See also:
JavaScript Core objects, methods, properties.
Previous: Javascript String Objects - Properties and Methods
Next: JavaScript length Property: String Object
Test your Programming skills with w3resource's quiz.