BFE.dev
Front-End Interview Questions15. `Array.prototype.forEach()` vs `Array.prototype.map()`

15. `Array.prototype.forEach()` vs `Array.prototype.map()`

JavaScript Meta Twitter
Share

An easy question, right?

It really depends on what you want to achieve.

In case you are not sure, read MDN about forEach() and map()

Source for this  
prevnext
Request SolutionAIGreatFrontEndPosts(7)