DEV Community

Discussion on: Math.min returns Infinity?

Collapse
 
umutcnkus profile image
Umutcan Kuş

Actually, even after all explanations it is still not a good design decision to me. But, your idea for reason is legit.
Another interesting thing is:

Math.min() > Math.max()

The reason is clear i think (:
Here you can see some other strange things about js, including this one.
loomcom.com/blog/0097_the_wats_of_...

Collapse
 
dance2die profile image
Sung M. Kim

Wat!?
JavaScript...
J/k.

Thank you for leading me to the rabbit hole of JavaScript Umutcan 😉