Question · JavaScript and TypeScript course · Module 5: Advanced JavaScript

Advanced Iterations - Map

What does the map() method return in JavaScript?

Answer options

  • Returns a new array with the results of a function applied to each element
  • Returns a single value
  • Removes elements from the array
  • Modifies the original array

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