Find the minimum number by using the Math.min : min : Math JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Math » min »

 

Find the minimum number by using the Math.min

















<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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Math
» min