Here's a little array method mystery for you...
Here's a beginner trap: map returns a NEW array with transformed values. But forEach? It returns undefined – it just loops through items. Remember: map transforms, forEach just iterates.
freeCodeCamp.org
Learn to code for free....