r/programming • • Mar 26 '14

JavaScript Equality Table

http://dorey.github.io/JavaScript-Equality-Table/
809 Upvotes

331 comments sorted by

View all comments

2

u/j1xwnbsr Mar 26 '14

So null and undefined are apparently the same thing? Or just the same during the comparison operation? And it's interesting that Nan!=Nan.

7

u/megamindies Mar 26 '14

Well Nan is defined as a number, so it cant be equal to Nan because thats means "Not a Number"

→ More replies (2)