given an array of numbers how to add up numbers in an array in javascript code example Example: javascript sum of array const sum = arr => arr.reduce((a, b) => a + b, 0);