Discuss / JavaScript / 作业打卡

作业打卡

Topic source

xixi0784

#1 Created at ... [Delete] [Delete and Lock User]

arr.sort((x, y) => x-y);

console.log(arr); // [1, 2, 10, 20]


  • 1

Reply