---
title: "Discussion on \"forEach() vs map() in JavaScript\" | Hashnode"
description: "Discussion on \"forEach() vs map() in JavaScript\". How are they different?"
url: "https://hashnode.com/posts/foreach-vs-map-in-javascript/63c448187a1dbd3d8c5127f2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [forEach() vs map() in JavaScript](https://gentlegiantdev.hashnode.dev/foreach-vs-map-in-javascript?utm_source=hashnode&utm_medium=feed)

How are they different?

Jan 15, 2023 · 3 min read · gentlegiantdev.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#methods](https://hashnode.com/tag/methods)

## Written by

[Eric Jakobsen](https://hashnode.com/@gentlegiantdev)

@gentlegiantdev · Tucson, Arizona, USA

  
[View profile](https://hashnode.com/@gentlegiantdev)

Gentle Giant coding his way through life

Nothing brings me greater joy than finding innovative and reliable solutions to complex problems. I love that software engineering asks each of us to show up each day and unlock a new piece of the puzzle. Prior to web development I ran my own successful e-commerce brand for over a decade. During that time I learned communication is important above all - both amongst team members and with customers. Communicating more effectively required me to dig deeper into the technologies we used which began my passion for software engineering. When I am not coding you can find me tending to my garden, engrossed in a novel, or hiking the beautiful mountains of Southern Arizona.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
