# 排序和取最大值最小值

  1. 数组sort

# Math.max Math.min

let max = Math.max(3, 54, 32, 16);
console.log(max);  // 54
         
let min = Math.min(3, 54, 32, 16);
console.log(min);  // 3
最后更新: 12/14/2021, 10:57:04 AM