Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do any of those return true if you use double equals? The distinction only really comes up when you have to different types on either side and then It will coerce one of the types to match the other.


That is correct. The canonical example is string-numeric coercion:

    "0" == 0 && "0" !== 0




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: