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

I gues it could be because + infront of an empty array returns 0. So, when you do !+[] you get 1. What you pasted it a bit of a labyrinth, but if someone bothered to keep track of it, they could definitely find ten 1s in there. It's not why, it's a how.

I hope someone figures out the rest and gets a cookie! :D



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

Search: