What is the primary purpose of the array map() ??

(A) passes each element of the array and returns the necessary mapped elements

(B) maps the elements of another array into itself

(C) Both (a) and (b)

(D) 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

Leave a Reply