I think there is the potential to clean up the pervious answers even further, take a look: const sum = arr.reduce((accumulator, currentValue) => accumulator + currentValue); The arrow function simplifies the function declaration syntax plus there is no need to declare initialValue since we want to just get the sum of the elements from the array of numbers.