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

Yes, but I don't know the answers to these questions because I know to avoid code like this.


Sure, some of these examples are pretty academic (eg ` Array.isArray( Array.prototype )`). But can you truthfully say you never get bitten by basic JS arithmetic fails, given how many ways it's possible to accidentally coerce numbers to strings?


Years ago, perhaps. Can't remember a specific instance.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: