---
title: "Discussion on \"Build your JavaScript Muscles with map, reduce, filter and other array iterators\" | Hashnode"
description: "Discussion on \"Build your JavaScript Muscles with map, reduce, filter and other array iterators\". A basic definition of an Array goes like,\n\nAn array is a special variable, which can hold more than one value at a time.\n\nArrays in JavaScript, are single variables used to store different kind of elements.  One of the primary needs in dealing with a..."
url: "https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e"
---

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

Discussion

# [Build your JavaScript Muscles with map, reduce, filter and other array iterators](https://blog.greenroots.info/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators?utm_source=hashnode&utm_medium=feed)

A basic definition of an Array goes like, An array is a special variable, which can hold more than one value at a time. Arrays in JavaScript, are single variables used to store different kind of elements. One of the primary needs in dealing with a...

Jul 29, 2019 · blog.greenroots.info  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#coding](https://hashnode.com/tag/coding)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

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

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 8

Markdown supported · ⌘↵ to post

[Vaibhav singh Chauhan](https://hashnode.com/@vaibhav589)

[Sep 7, 2024](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/66dbffc3e41c48accb447656)

this article all my query related map,filter,reduce,every,some,find this is very helpfull article for me thanyou sir thankyou very much

[Tapas Adhikary](https://hashnode.com/@atapas)

[Sep 12, 2024](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/66dbffc3e41c48accb447656#reply-66e280c4906dc74d6c1a2594)

Great, thanks!

[Abu Nurullah](https://hashnode.com/@abu123456)

[Dec 12, 2023](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/65781414c8238031e0988965)

Very nice and interesting

[Tapas Adhikary](https://hashnode.com/@atapas)

[Dec 12, 2023](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/65781414c8238031e0988965#reply-6578838aff43aae7e46e1dd2)

Thank you ❤️

[Ayomide Balogun](https://hashnode.com/@TrustedTrust)

[Dec 18, 2022](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/639ed6ca6c6eff8c668479d8)

Thank you very much! I get to understand how to use array iterator methods and how it works

[Tapas Adhikary](https://hashnode.com/@atapas)

[Dec 18, 2022](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/639ed6ca6c6eff8c668479d8#reply-639ee101052fc36d4a8f787d)

You are welcome.

[Hemensan Mahilange](https://hashnode.com/@9802HEMENSAN)

[Sep 4, 2022](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/6314c2ab041b51e1712e4eca)

Thank you very much sir . I am a student and following you to learn basics of web development and I feel its a masterpiece for every learners . Really you're doing great sir. Such a brilliant explanation . And I feel very much confident after learning your concepts .

[Tapas Adhikary](https://hashnode.com/@atapas)

[Sep 4, 2022](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/6314c2ab041b51e1712e4eca#reply-6314d273d49bb9d8c2f772c0)

Thank you [Hemensan Mahilange](https://hashnode.com/@9802HEMENSAN). I'm very glad you liked it 🙏

[Ranadheer Reddy](https://hashnode.com/@Ranadheer)

[Aug 7, 2019](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/5d4a7b1ce058b029109cb4f3)

Great Article. Thanks for sharing. Following is my suggestion

We can even calculate the amount spent by married couples without using map function (directly use customer in reduce function)

const total = customers .filter(customer => customer.married) .reduce((accum,customer) => accum + customer.expense);

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 7, 2019](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/5d4a7b1ce058b029109cb4f3#reply-5d4afc21be7b95b432e685bb)

[Ranadheer Reddy](https://hashnode.com/@Ranadheer), Thank You!

Yes we can. Your example looks perfect to me.

[Joseph S Stevens](https://hashnode.com/@josephscottstevens)

[Jul 31, 2019](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/5d41ef18550f068216446e65)

Great article, thanks for helping break down the barriers to functional programming. It looks really clean!

[Tapas Adhikary](https://hashnode.com/@atapas)

[Aug 1, 2019](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/5d41ef18550f068216446e65#reply-5d429badd3ccd88c5676d7f8)

Thank You Very much [Joseph S Stevens](https://hashnode.com/@josephscottstevens)!

[Wei Lun](https://hashnode.com/@weilun)

[Jul 31, 2019](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/5d40feb4c77a6cb11d9da704)

How do you create the beautiful muscle graphic

[Tapas Adhikary](https://hashnode.com/@atapas)

[Jul 31, 2019](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/5d40feb4c77a6cb11d9da704#reply-5d4115a75c100a1e2757a719)

[Wei Lun](https://hashnode.com/@weilun), Thank You!

Those are awesome graphics. I had a mention for those in `Credits and Resources` section:

> Muscle men in the cover and post image are from [here](https://www.vectorstock.com/royalty-free-vector/cartoon-characters-of-strong-and-muscular-vector-18549883)

[Maneesh Kumar](https://hashnode.com/@kontactmaneesh)

[Jul 30, 2019](https://hashnode.com/posts/build-your-javascript-muscles-with-map-reduce-filter-and-other-array-iterators/5d3e9c83876d7eb83cb58d6e/comment/5d3fbe14ea67aca069f05643)

Nice Article .. Great way of explanation. :)
