The primary purpose of the array map() function is that it

The primary purpose of the array map() function is that it Correct Answer 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

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.

Related Questions

Which array function checks if the specified key exists in the array?
Which exception is thrown when an array element is accessed beyond the array size?
What array will you get if you convert an object to an array?