1 / 3
amogtech
2 / 3
mhk
3 / 3
ccg


<html>
<head>
<title>Finding The Maximum Number</title>
</head>
<body>
<p id = "demo"></p>
<script>
function findMax(){
var max = - Infinity;
for(i = 0; i < arguments.length; i++){
if(arguments[i] > max){
max = arguments[i];
}
}
return max;
}
document.getElementById("demo").innerHTML = findMax(900, 80, 200, 1000, 490);
</script>
</body>
</html>


Share On:

What do you think?

Send us feedback!