← Back to Question List
JavaScript Code Walkthrough #10
Default Sort Is Lexicographic
📄 Code
Read carefully — what does this print?1const nums = [10, 2, 1];2console.log(nums.sort().join(","));