While reading I found this expression:
_=$=+[],++_+''+$
Curiously, it is a valid expression in javascript
but the most curious thing is that when it is executed, the result is:
10
I tried to make sense of it by breaking the expression down but I didn't get much done.
Why is the result of that expression equal to 10
?