JavaScript Array reduce() method is used to execute a reducer function on each element of the array and returns a single output value. This method does not change the original array. Syntax array.reduce(function(accumulator, currentValue, currentIndex, arr), initialValue) # or array.reduce(callback); Parameters function(required): Each array element is a required parameter. It contains