$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #29

What is the output?

console.log([] + []);
  1. "[]"
  2. 0
  3. ""
  4. "[][]"
Both arrays become empty strings, yielding "".
Play Problem Solving ▸