| min() The min() method is used to return the minimum value for the number of the two parameters passed. syntax: Math.max(numberOne, numberTwo) EXAMPLE var newNumber = 678 * 12.87; document.write("The minimum value for the product of 678 and 12.87 is : " + Math.min(newNumber) ) The example first creates newNumber, which will hold the product of the multiplication of 678 and 12.87. The document.write statement then writes some applicable text to the screen, along with the min() value of the contents of newNumber. The answer to the multiplication within newNumber is, using normal mathematics, 8725.86. Advanced mathematical methods are used to find the largest possible number for newNumber, which are too in depth to delve into here. The output should look like the following: The minimum value for the product of 678 and 12.87 is : 8725.859999999998 |