$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #185
What is the output?
console.log([...'abc'].length);
3
1
abc
Error
Spreading a string iterates its code points, giving an array of single characters.
Play Problem Solving ▸
◂ #184
all Problem Solving — predict the output questions
#186 ▸