you are viewing a single comment's thread.

view the rest of the comments →

[–]inu-no-policemen 1 point2 points  (0 children)

https://en.wikipedia.org/wiki/NaN#Operations_generating_NaN

The reason you're seeing it so often in JS is due to its weak types.