SQL PHP HTML ASP JavaScript articles and free scripts to download
 

Math.min() JavaScript math function

Math.min() JavaScript math function we can use to get the minimum value from a set of numbers

Math.min(x1,x2,x3,….xn)

We will try some examples.

<script language='JavaScript' type='text/JavaScript'>
<!--
document.write(Math.min(5,6,2,20,8,5)); // output is 2
document.write("<br>");
document.write(Math.min(5,6,-10,2,20,8,5,-6)); // output is -10
document.write("<br>");
document.write(Math.min(-8,-5,-2)); // output is -8
//-->
</script>




Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked

Join Our Email List
Email:  
For Email Newsletters you can trust
Math functions