Find the minimum number by using the Math.min : min « Math « JavaScript Tutorial






<html>
<head>
<title>Finding the minimum number</title>
<script type="text/javascript" language="javascript">
<!-- //
function f(){
   var MinNum = Math.min(1,2,3);

   document.write(MinNum);
}
// -->
</script>
</head>
<body onload="f()">
</body>
</html>








9.18.min
9.18.1.Math.min()
9.18.2.Find the minimum number by using the Math.min
9.18.3.Finding the maximum and minimum number
9.18.4.Use Math.min the get the minimum value among three