Differences Between forEach() and map()
Every Javascript developer should know the difference between forEach() and map().
The points to be noted:
When to use either forEach() and map()
Performance speed
The ability of chaining process
Syntax:
forEach():
forEach((currentElement, index...