const arr = [5, 3 ,1, 2, 4, 6, 7,10, 8, 9]

//合計
let sum = arr.reduce(
    (a,b) => a + b 
)
console.log(sum) // 55

//平均
let avg = sum / arr.length
console.log(avg)  // 5.5

//最大値
let max = arr.reduce(
    (a,b) => a > b ? a : b 
)
console.log(max) // 10

//最小値
let min = arr.reduce(
    (a,b) => a < b ? a : b 
)
console.log(min) // 1

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.