const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
let result = arr.reduce((a,b) => a + b)

console.log(result) // 55

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.