<!DOCTYPE html>
<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>
</html>