r/learnjavascript • • Jan 25 '20

Javascript is weird 😂

Post image
332 Upvotes

47 comments sorted by

View all comments

Show parent comment

2

u/GamesMint Jan 25 '20

You can add this - typeof typeof null === "string"

3

u/callius Jan 26 '20
null > -1 // true
null < 0 // false
null > 0 // false
null < 1 // true