Frontend
Interviews
.dev
Problems
617. Default Array.sort Behavior
Easy
•
...
Predict the output.
console
.
log
(
[
10
,
2
,
1
]
.
sort
(
)
)
What is the correct output/behavior?
[1,10,2]
[1,2,10]
[2,10,1]
[10,2,1]
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer