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