add up all the values in an array javascript .reduce mdn code example
Example: .reduce mdn
arr.reduce(callback( accumulator, currentValue[, index[, array]] )[, initialValue])
arr.reduce(callback( accumulator, currentValue[, index[, array]] )[, initialValue])