---
title: "Discussion on \"Understanding the difference between Map and ForEach method.\" | Hashnode"
description: "Discussion on \"Understanding the difference between Map and ForEach method.\". Have you ever wondered about the difference between map and forEach when dealing with arrays in JavaScript? If your answer is Yes then Let's take a stroll t"
url: "https://hashnode.com/posts/understanding-the-difference-between-map-and-foreach-method/64dea67c41c55fda6bc6e8e1"
---

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

Discussion

# [Understanding the difference between Map and ForEach method.](https://devlawrence.hashnode.dev/understanding-the-difference-between-map-and-foreach-method?utm_source=hashnode&utm_medium=feed)

Have you ever wondered about the difference between map and forEach when dealing with arrays in JavaScript? If your answer is Yes then Let's take a stroll t

Aug 17, 2023 · 2 min read · devlawrence.hashnode.dev  
Updated Aug 24, 2023  
Read the article

-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Dev lawrence](https://hashnode.com/@DevLawrence)

@DevLawrence · Nigeria

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

Frontend developer | HTML | CSS | SASS | JAVASCRIPT

I try my best to teach technical web development concepts in an easier and more fun way.

## Responses 1

Markdown supported · ⌘↵ to post

[Keshav Kumar](https://hashnode.com/@keshavkr)

[Aug 19, 2023](https://hashnode.com/posts/understanding-the-difference-between-map-and-foreach-method/64dea67c41c55fda6bc6e8e1/comment/64e10651926ee7ad857bd418)

Please correct the output in forEach. I don't know why you have written Alice, Bob, Charlie. All the best..✌️

[Dev lawrence](https://hashnode.com/@DevLawrence)

[Aug 24, 2023](https://hashnode.com/posts/understanding-the-difference-between-map-and-foreach-method/64dea67c41c55fda6bc6e8e1/comment/64e10651926ee7ad857bd418#reply-64e7cb26cddf12fecdfc9edb)

My bad man. It's fixed now. Thanks 🙌
