const numbers = [5, 12, 8, 23, 6];
const maxValue = Math.max(...numbers);
console.log("数组中的最大值是:" + maxValue);
js取出数组中最大值
猜你喜欢
转载自blog.csdn.net/qq_44063746/article/details/132165213
今日推荐
周排行