---
title: "Comment by Ayodele Samuel Adebayo on \"Array.prototype.map() & Array.prototype.forEach()\" | Hashnode"
description: "Good and straightforward explanation Annukul Thakran . I&#39;ll also add that the forEach() function returns undefined by default and not chainable by nature i."
url: "https://hashnode.com/posts/arrayprototypemap-and-arrayprototypeforeach/628555b483966a1653f13307/comment/628727448b33cc3f1f48b651"
---

[Discussion](https://hashnode.com/posts/arrayprototypemap-and-arrayprototypeforeach/628555b483966a1653f13307)

Comment [Array.prototype.map() & Array.prototype.forEach()](https://hashnode.com/posts/arrayprototypemap-and-arrayprototypeforeach/628555b483966a1653f13307)

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[May 20, 2022](https://hashnode.com/posts/arrayprototypemap-and-arrayprototypeforeach/628555b483966a1653f13307/comment/628727448b33cc3f1f48b651)

Good and straightforward explanation [Annukul Thakran](https://hashnode.com/@annukul03).

I'll also add that the `forEach()` function returns `undefined` by default and not chainable by nature i.e `forEach().then(=>{})` will return undefined.

[Annukul Thakran](https://hashnode.com/@annukul03)

[May 20, 2022](https://hashnode.com/posts/arrayprototypemap-and-arrayprototypeforeach/628555b483966a1653f13307/comment/628727448b33cc3f1f48b651#reply-6287397e7b02ca162edb01d9)

Thanks a lot for pointing that out. Have a great day man!
