JavaScript String Object
The constructor property returns the function that created the String object's prototype.
![]()
The constructor property is supported in all major browsers.
Return the function that created the String object's prototype:
The output of the code above will be:
JavaScript String Object
Your message has been sent to W3Schools.