**Math.min() Function:**

Find the minimum number in the array list.

**Syntax:**

min(number1,number2,.......numbern)

**Description:**

Because

**min**is a static method of Math, you always use it as

**Math.min()**, rather than as a method of a Math object you created.

**Example**

<html>

<head>

<title>MIN Function</title>

**<script language="javascript">**

document.write("The minimum number is " + Math.min(5,8) + " from(5,8)

");

document.write("The minimum number is " + Math.min(-2,-9) + " from(-2,-9)

");

document.write("The minimum number is " + Math.min(7.25,7.30) + " from(7.25,7.30)");

**</script>**

</head>

</html>

**OUTPUT:**

The minimum number is 5 from(5,8)

The minimum number is -9 from(-2,-9)

The minimum number is 7.25 from(7.25,7.30)

## No comments:

## Post a Comment