求数组最大值

let arr = [3,2,4,1,8,6]
let maxValue = Math.max.apply(null,arr);
console.log(maxValue);
posted @ 2019-08-13 14:58  请再检查一遍代码  阅读(233)  评论(0)    收藏  举报