JavaScript Math Object : min()

The min() method returns the number with the lowest value. Syntax :
  Math.min(num1, num2, num3, ....num_N);
Example :
<script>
  var x = Math.min(12, 23, 10, 25, 45, 100, 68);
  document.write("min(12, 23, 10, 25, 45, 100, 68) : " + x + "<br/>");
  var x = Math.min(-10, -20, -1, -100, -15);
  document.write("min(-10, -20, -1, -100, -15) : " + x + "<br/>");
</script>
Output :


Next Topic :