0

Math.max

Why is Math.max(1, 2, NaN) //NaN?

17th Feb 2020, 4:26 PM
Chuks AJ
Chuks AJ - avatar
3 Réponses
+ 2
its in the docs https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max ```If at least one of the arguments cannot be converted to a number, NaN is returned.```
17th Feb 2020, 4:29 PM
Taste
Taste - avatar
+ 1
Thank you.
17th Feb 2020, 4:31 PM
Chuks AJ
Chuks AJ - avatar
0
NaN - not a Number, it's set falture and function math.Max returns NaN
18th Feb 2020, 8:50 AM
Фёдор Станиславович
Фёдор Станиславович - avatar