Home > Q&A > body text
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"
阿神2017-05-19 10:42:20
+{}=NaN,NaN+[]="NaN","NaN"[1]=a