---
title: "Comment by Keshav Kumar on \"Understanding the difference between Map and ForEach method.\" | Hashnode"
description: "Please correct the output in forEach. I don&#39;t know why you have written Alice, Bob, Charlie. All the best..✌️"
url: "https://hashnode.com/posts/understanding-the-difference-between-map-and-foreach-method/64dea67c41c55fda6bc6e8e1/comment/64e10651926ee7ad857bd418"
---

[Discussion](https://hashnode.com/posts/understanding-the-difference-between-map-and-foreach-method/64dea67c41c55fda6bc6e8e1)

Comment [Understanding the difference between Map and ForEach method.](https://hashnode.com/posts/understanding-the-difference-between-map-and-foreach-method/64dea67c41c55fda6bc6e8e1)

[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 🙌
