Examveda
Examveda

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

A. maps the elements of another array into itself

B. passes each element of the array and returns the necessary mapped elements

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

D. None of the mentioned

Answer: Option C

Solution(By Examveda Team)

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.

This Question Belongs to Javascript >> Array And Function

Join The Discussion

Related Questions on Array and Function