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

What is the output?

console.log([...'abc']);
  1. ['a', 'b', 'c']
  2. ['abc']
  3. 'a,b,c'
  4. [0, 1, 2]
Spreading a string iterates its characters into an array.
Play Problem Solving ▸