<html>
<body>
<h1>JavaScript Strings</h1>
<h2>The constructor Property</h2>
<p>The constructor property returns the function that created the String prototype:</p>
<p id="demo"></p>
<script>
let message = "Hello World!";
let text = message.constructor;
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>