JavaScript Arrays

The reduce() Method

Find the sum of all numbers in an array: