js es6 sum array values code example Example: es6 array sum javascript const arrSum = arr.reduce((a,b) => a + b, 0);