【前端学习】—给定数组求最大值(七) 一、给定数组求最大值场景 二、怎样对给定的数组求最大值 Math.max 数组的reduce函数 数组的sort函数 //Math.max const arr=[1,2,3,4]