A

Admin • 833K Points
Coach

Q. Which method is used to loop over an array and create a new array with the results?

  • (A) map()
  • (B) forEach()
  • (C) filter()
  • (D) reduce()
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

map() creates a new array by applying a function to each element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.