This is valid and returns the string \"10\" in JavaScript (more examples here):
\"10\"
++[[]][+[]] => 1 // [+[]] = [0], ++0 = 1 [+[]] => [0]
Then we have a string concatenation
1+[0].toString() = 10