3 ms·
var $ = [] ![] == false because [] exists. false + [] == 'false' because anything added to an array will become whatever that is as a string plus the contents
by weixiyen 16y ago
var $ = []
![] == false because [] exists.
false + [] == 'false' because anything added to an array will become whatever that is as a string plus the contents inside the array.
2 + [] is also a string "2"
2 + [2,2] will become "22,2" (string)