Q. For which purpose the array "map()" methods is used ?
β
Correct Answer: (D)
It passes every 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