CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Default Sort Is Lexicographic

JavaScript code walkthrough · Question 10
hardArrays

Code

Read carefully. What does this print?
1const nums = [10, 2, 1];
2console.log(nums.sort().join(","));

Your answer