Mega Code Archive

 
Categories / JavaScript Tutorial / Math
 

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>