Sorry for this may be well-known for some people, especially professional JS devs. But JS is so widely used in projects that I expect some others (like me) may find some results surprising.
Predict (try) result of operations (including type!) of few following expressions - and then check yourself (e.g. in browser console).
"5" + 3"5" - 3[] + 2{} + 2[] - 2{} - 2[] + 2 == 2 + []{} + 2 == 2 + {}{} + [][] + {}
Post in the comment, well... No answers (everyone can check)... Post how many you've guessed. And which is the most confusing in your opinion.
Few are obvious so hopefully your result would be non-zero. No sense to cheat, we are not in interview or exam - just have fun! :)




A little late to the party!
Surprisingly, I couldn't successfully guess the third one and the last three. JavaScript is really a weird language haha!
This is astonishing knowing that a language that can interpret these instructions is ruling the Web...