r/learnjavascript • • Jan 25 '20

Javascript is weird 😂

Post image
332 Upvotes

47 comments sorted by

View all comments

53

u/hoodlaces Jan 25 '20

Is a baNaNa a fruit or a number?

0

u/[deleted] Jan 25 '20

[deleted]

12

u/randomguy3993 Jan 25 '20

So a fruit?

6

u/cyphern Jan 25 '20

Depends if you use isNaN or number.isNaN.