Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
Why does the sort() method default behavior sort numbers incorrectly?
Auto Skip
Report Issue
A.
sort() sorts numerical values correctly; problem only occurs with string values
B.
Default does string UTF-16 sorting; (a,b) => a-b needed for numerical; sort() modifies original
C.
sort() does numerical sorting by default; wrong result is a JS engine bug
D.
sort() never modifies original array; always returns new array
Previous
Next