Find the maximum number by using the Math.max : max : Math JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Math » max »

 

Find the maximum number by using the Math.max

















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

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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Math
» max