function test(){ return (+{}+[])[1]; //返回a }
It’s like the above js code. What I want to know is why the return value is "a"?
"a"
闭关修行中......
+{}=NaN,NaN+[]="NaN","NaN"[1]=a
+{}=NaN,NaN+[]="NaN","NaN"[1]=a