Question · JavaScript and TypeScript course · Module 12: Functional Programming

The Array.map() Method

What does the Array.map() method do in JavaScript?

Answer options

  • Creates a new array with the results of calling a function on every element
  • Reduces the array to a single value
  • Modifies the original array in place
  • Filters array elements by a condition

You can check the correct answer by solving this task in the CodeWorlds game.