What does Array.prototype.map() return?
- A The original array, modified in place
- B A new array with the results of calling the function on every element
- C A single accumulated value
- D The number of elements processed
Answer
A new array with the results of calling the function on every element
map is non-mutating and always returns a new array of the same length. forEach returns undefined and reduce returns a single value.





