---
title: "Comment by Mohit Yadav on \"Are you using map, forEach, and reduce wrong?\" | Hashnode"
description: "The explanation is great! I&#39;m still a newbie to the reduce function, so I try to avoid it mostly, but at least I got the map and forEach functions correct!"
url: "https://hashnode.com/posts/are-you-using-map-foreach-and-reduce-wrong/6236f5328e4fae3f767de87c/comment/62378fae8e4fae3f767dff97"
---

[Discussion](https://hashnode.com/posts/are-you-using-map-foreach-and-reduce-wrong/6236f5328e4fae3f767de87c)

Comment [Are you using map, forEach, and reduce wrong?](https://hashnode.com/posts/are-you-using-map-foreach-and-reduce-wrong/6236f5328e4fae3f767de87c)

[Mohit Yadav](https://hashnode.com/@just-moh-it)

[Mar 20, 2022](https://hashnode.com/posts/are-you-using-map-foreach-and-reduce-wrong/6236f5328e4fae3f767de87c/comment/62378fae8e4fae3f767dff97)

![Great](https://media.giphy.com/media/28exZ74FVa4gHd660z/giphy.gif)

The explanation is great! I'm still a newbie to the reduce function, so I try to avoid it mostly, but at least I got the `map` and `forEach` functions correct!
