经典型转换练习:(都能答对真的很厉害了,留个名让我关注膜拜一下)
1 + '1'
true + 0
{}+[]
4 + {}
4 + [1]
'a' + + 'b'
console.log ( [] == 0 )
console.log ( ! [] == 0 )
console.log ( [] == ! [] )
console.log ( [] == [] )
console.log({} == !{})
console.log({} == {})
答案
一错就知道,一做又全忘哈哈哈哈。
'11'
1
0
"4[object Object]"
"41"
"aNaN"
true
true
true
false
false
false