const arr = [3, 5, 4, 11, 7, 22]; arr.reduce((previousValue, currentValue) => { return previousValue + currentValue; // <--- 3 + 5 + 4 + 11 + 7 + 22 = 52 }, 0)