js-test-12

How small is Math.min() in JavaScript?

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

The function Math.min() takes the variable number of arguments and returns the lowest number passed into it.

In our case, it’s called without any arguments which is a special case.

If Math.min() is called without any parameters, it will return Infinity which is the opposite of what you might have expected.


ANSWER: true will be printed to the screen as Infinity is greater than 0.