Display the number with the highest value. - Javascript Math

Javascript examples for Math:Quiz

Description

Display the number with the highest value.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
document.getElementById("demo").innerHTML = Math.max(-0, 15, 30, 20, -8);
</script>/*from w  w  w  . j a  v a  2s  . c o m*/

</body>
</html>

Related Tutorials