$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #82

What is the output?

console.log([1, 2, 3].join(''));
  1. 123
  2. 1,2,3
  3. [123]
  4. 6
An empty separator glues the elements together as text.
Play Problem Solving ▸