In JavaScript, the array.sort() method sorts the array. Let's use it to sort some numbers: const numbers = [10, 5, 11];. numbers.sort(); // => [10, 11, 5]
確定! 回上一頁