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

What is the output?

console.log(1 + 2 + "3" + 4 + 5);
  1. "3345"
  2. "15"
  3. "12345"
  4. 3345
1+2 is 3, then concatenation gives "33", "334", "3345".
Play Problem Solving ▸