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