What is the purpose of the reduce() method in JavaScript arrays?
reduce()
Applies a function to reduce the array to a single value.
Adds new elements to the beginning of an array.
Reverses the order of elements in an array.
Removes elements from an array.