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


<html>
<head>
<title>Finding the Minimum Number</title>
</head>
<body>
<p id = "demo"></p>
<script>
function findMin(){
var min = Infinity;
for(i=0; i<arguments.length; i++){
if(arguments[i]<min){
min = arguments[i];
}
}
return min;
}
document.getElementById("demo").innerHTML = findMin(100, 400, 90, 2, 4000, 500);
</script>
</body>
</html>


Share On:

What do you think?

Send us feedback!