A

Admin • 833K Points
Coach

Q. Which of the following creates a new array with results of calling a function on every element?

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

Explanation by: Admin

map() returns a new array after 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.