console.log(++[[]][+[]]+[+[]]);
Why in the world does this print out 10 and not something else...? Its been driving me crazy for too long. I found this while reading the following article:
http://tutorialzine.com/2013/12/the-10-weirdest-programming-languages/
Perhaps someone can provide a definitive solution. I look forward to your swift responses everyone.