cf.completefrontend

Predict the outputMedium

What does + give when you add arrays and objects, like [] + {}?

What does this log?
console.log([1, 2] + [3, 4]);
console.log([] + {});
console.log({} + []);
console.log([] + [] === "");
console.log({} + 1);
console.log([5] * [2]);
console.log(+[]);
console.log(+{});

The answer

Work out every line it logs, in order. Then check.

Checking your sign-in…