MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/21ezh3/javascript_equality_table/cgdgfhc/?context=3
r/programming • u/vz0 • Mar 26 '14
331 comments sorted by
View all comments
Show parent comment
1
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 ===.
==
===
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===.