HN2new | past | comments | ask | show | jobs | submitlogin

Umm , you missed a key point here. The first comparison is == while the second one is ===. These 2 are different. The == checks equivalent. Mathematically speaking he should have used === in both places.

These things are more of quirks of javascript than anything else. The post did nothing but made me hate javascript. Try doing the same in Java !



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

Search: