Hint
Arrays coerce to strings via .join(","). []==![] is true β one of JS's most infamous "wat" moments.
console.log([] == ![]);
console.log([] == false);
console.log(+[]);
console.log(+[1]);
console.log(+[1,2]);true true 0 1 NaN
Explanation: []==![]: ![] is false ([] is truthy). []==false. [].toString()="" then +"" =0. falseβ0. 0==0 β true.
[]==false: [].toString()="", +""=0, falseβ0, 0==0βtrue.
+[]: []β""β0.
+[1]: [1]β"1"β1.
+[1,2]: [1,2]β"1,2"βNaN.
Key Insight: Arrays coerce to strings via .join(","). []==![] is true β one of JS's most infamous "wat" moments.