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