After hoisting, interviewers love dropping one-liners like:



console.log([] + []);
console.log([] + {});
console.log({} + []);
console.log(NaN === NaN);






…and watching whether you guess, freeze, or calmly walk the coercion rules.

This post is only output-based type coercion / equality questions.
Try each snippet yourself first. Answers are...