Edit This Code:
<!DOCTYPE html>
<html>
<body>

<p>The constructor property returns the function that created the numbers's prototype:</p>

<p id="demo"></p>

<script>
var num = 134.5;
document.getElementById("demo").innerHTML = num.constructor;
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy