JavaScript max() Function Example
JavaScript max() function return the number in maximum value.
Example
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript Math.max() function</title>
</head>
<body>
<script type="text/javascript">
document.write(Math.max(28,13,47,5) + "<br />");
document.write(Math.max(1.77,2.30,7.32)+ "<br />");
document.write(Math.max(-5,10) + "<br />");
document.write(Math.max(-1.77,-2.30,-7.32));
</script>
</body>
</html>
Example Result