What is the purpose of the reduce() method in JavaScript arrays?
reduce()
Adds new elements to an array.
Reduces the array to a single value by applying a function.
Removes elements from an array.
Applies a function to each element of the array.