Displaying Maximum and Minimum Values : Maximum Minimum Values « Number Data Type « JavaScript Tutorial






<html>
<head>
<title>Displaying Maximum and Minimum Values</title>
<script type="text/javascript" language="javascript">
<!-- //
function ShowLimits(){
var maxAndMin  = "Max Number: " + Number.MAX_VALUE + "\n";
    maxAndMin += "Min Number: " + Number.MIN_VALUE;
document.write(maxAndMin);
}
// -->
</script>
</head>
<body onload="ShowLimits()">

</body>
</html>








5.11.Maximum Minimum Values
5.11.1.Displaying Maximum and Minimum Values