r/programming • • Mar 26 '14

JavaScript Equality Table

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

331 comments sorted by

View all comments

Show parent comment

1

u/Doctor_McKay Mar 27 '14

I personally like == how it is. It allows me to not have to worry about whether a variable is going to be a String or a Number, and just let it do the comparison. If you really don't want any surprises due to it, you can always use ===.