PRACTICE / UNDERSTAND / REPEAT

JavaScript: Arrays

Practice arrays with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

51 questionsAnswers explainedFree · no login
Question 1 of 51
Arrays · MCQQuestion link ↗

What does `map()` return?

Choose one answer
Answer & explanation

Answer: A new array containing each callback result

`map()` builds a new array from callback return values; it does not mutate the original array by itself.