using .reduce how do you add an array as a value in javascript code example Example: javascript sum of array const sum = arr => arr.reduce((a, b) => a + b, 0);