A

Admin • 828.03K Points
Coach

Q. What does the map() method do?

  • (A) Creates a new array with the result of calling a function on every element
  • (B) Finds an element in an array
  • (C) Filters elements from an array
  • (D) Sorts elements
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
map() transforms each element of the array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.