Here are some examples:
0 == '' //true 0 == '0' //true '' == '0' //false fasle == 'false' //false false == '0' //true " \t\r\n " == 0 //true
When you are writting code, one of the things you want to make sure is that it is not confusing. For this very reason, Douglas argues we should always use ===, and never == for comparison.
I love to code and better the world. Graduate student at Georgia Tech specializing in Machine Learning.