$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · hard · #74

What is the output?

console.log([] + {});
  1. [object Object]
  2. {}
  3. 0
  4. NaN
Both convert to strings: '' plus '[object Object]'.
Play Problem Solving ▸