<html>
<body>
<p>The constructor property returns the function that created the string's prototype:</p>
<p id="demo"></p>
<script>
var str = "Hello World!";
document.getElementById("demo").innerHTML = str.constructor;
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_constructor_string by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:37 GMT -->
</html>