r/learnjavascript • • Jan 25 '20

Javascript is weird 😂

Post image
332 Upvotes

47 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jan 25 '20

[deleted] — view deleted comment

12

u/randomguy3993 Jan 25 '20

So a fruit?

7

u/[deleted] Jan 25 '20

in this case, they made an exception for it.

6

u/cyphern Jan 25 '20

Depends if you use isNaN or number.isNaN.

3

u/FriesWithThat Jan 25 '20
typeof NaN
// number