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

I'm mostly a back-end guy... does it really matter if you you use != vs !== when you know that both operands have the same type in javascript? In this case, you've got string literals, so (flying spaghetti monster, I hope there won't be any type conversions going on)


It matters for anyone who maintains your code. "!=" is a big red flag, better to consistently use "!==".




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

Search: