Q. What does the map() method do?
β
Correct Answer: (A)
Creates a new array with the result of calling a function on every element
Explanation: map() transforms each element of the array.