const list = [1, 2, 3, 4, 5]; console.log(list.reduce((number, nextNumber) => number + nextNumber)); // --> 15