Hacker News new | past | comments | ask | show | jobs | submit login

daeken explained it quite well. From his post:

"As explained under 'read more', it's because 'test' will be cast to a number for comparison. Since 'test' isn't a number, it becomes 0, which is equivalent."




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

Search: