Skip to content
Skills
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Home
/
Frontend Developer
/
Easy
/
Sorting numbers without a comparator
easy
5 pts · first answer counts
javascript
arrays
Sorting numbers without a comparator
What does this print?
console.log([10, 1, 2, 25].sort())
Choose one answer
A.
[1, 2, 10, 25]
B.
[25, 10, 2, 1]
C.
[10, 1, 2, 25]
D.
[1, 10, 2, 25]
Submit answer
Report a problem
← Order of click handlers
Take the easy mock interview →