问题:
This is valid and returns the string "10"
in JavaScript ( more examples here ): 这是有效的,并在JavaScript中返回字符串"10"
( 此处有更多示例 ):
console.log(++[[]][+[]]+[+[]])
Why? 为什么? What is happening here? 这是怎么回事
解决方案:
参考一: https://stackoom.com/question/UDbp/为什么-返回字符串参考二: https://oldbug.net/q/UDbp/Why-does-return-the-string-10
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4302115