JavaScript Tutorial/Math/max
Find the maximum number by using the Math.max
<source lang="javascript">
<html> <head> <title>Finding the maximum number</title> <script type="text/javascript" language="javascript">
</script> </head> <body onload="f()"> </body> </html></source>
Math.max()
Syntax
<source lang="javascript">
math.max(num1, num2)</source>
Use Math.max to get the maximum value among three
<source lang="javascript">
<html> <head> <title>A Simple Page</title> <script language="JavaScript">
</script> </head> <body> </body> </html></source>