$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · easy · #157
What is the output?
console.log([10, 1, 5].sort());
[1, 10, 5]
[1, 5, 10]
[10, 5, 1]
[5, 1, 10]
Default sort compares strings, so '10' precedes '5'.
Play Problem Solving ▸
◂ #156
all Problem Solving — predict the output questions
#158 ▸