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
I hope someone figures out the rest and gets a cookie! :D