Q. Which of the following creates a new array with results of calling a function on every element?
β
Correct Answer: (A)
map()
Explanation: map() returns a new array after applying a function to each element.