01

JavaScript, Math.min()

JavaScript, Math.min() is JavaScript, Math.min() is a method that returns the smallest number from a given set of numbers.

Syntax:

javascript

Copy

Edit

Math.min(number1, number2, ...);

Accepts multiple numbers as arguments.

Returns the smallest number.

If no arguments are given, it returns Infinity.

If any argument is not a number (NaN), it returns NaN.

Write a comment ...

Write a comment ...