Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
JavaScript
/
Array methods
Which expression returns a numeric ascending order without changing scores?
from Array methods
Node 24
beginner
1 min
Which expression returns a numeric ascending order without changing scores?
scores.toSorted((a, b) => a - b)
scores.sort()
scores.sort((a, b) => a - b)
scores.toSorted()
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload