<html>
<body>
<p>The constructor property returns the function that created the string's prototype:</p>
<p id="demo"></p>
<script>
var d = new Date();
document.getElementById("demo").innerHTML = d.constructor;
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_constructor_date by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:02:02 GMT -->
</html>