Q. The primary purpose of the array map() function is that it
β
Correct Answer: (C)
passes each element of the array on which it is invoked to the function you specify, and returns an array containing the values returned by that function
Explanation: The map() method passes each element of the array on which it is invoked to the functionyou specify, and returns an array containing the values returned by that function.