most declarative way to compute the sum of an array? code example Example: sum all elements in array javascript arr.reduce((a, b) => a + b)