reduce() is a method that condenses all elements of an array into a single value.