---
title: "Discussion on \"Understanding Basics of Reduce in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding Basics of Reduce in JavaScript\". What we will cover:\nNote: This article is updated with corrections about truthy and falsy values\nIn the previous article, we read about map, filter and find functions, in this article, we will first see how reduce works with a simple example and then..."
url: "https://hashnode.com/posts/understanding-reduce-in-javascript/6413781bd4168230512f1fd5"
---

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

Discussion

# [Understanding Basics of Reduce in JavaScript](https://swapnilbawane.hashnode.dev/understanding-reduce-in-javascript?utm_source=hashnode&utm_medium=feed)

What we will cover: Note: This article is updated with corrections about truthy and falsy values In the previous article, we read about map, filter and find functions, in this article, we will first see how reduce works with a simple example and then...

Mar 16, 2023 · 14 min read · swapnilbawane.hashnode.dev  
Updated Mar 26, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#neogcamp](https://hashnode.com/tag/neogcamp)

## Written by

[Swapnil Bawane](https://hashnode.com/@swapnilbawane)

@swapnilbawane · Mumbai, Maharashtra, India

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

Learning Web Development

Hi, I am currently learning to program with @neogcamp. Exploring front end development. Follow my journey as I continue to tinker with code and writing!

## Responses 2

Markdown supported · ⌘↵ to post

[Syed Mustassim Mustaq](https://hashnode.com/@mustassim)

[Mar 17, 2023](https://hashnode.com/posts/understanding-reduce-in-javascript/6413781bd4168230512f1fd5/comment/64147266bdb25cbbdb03b985)

This is very detailed and explains reduce well. The use of illustrations makes it easier to understand as well! Well written, Swapnil!

[Swapnil Bawane](https://hashnode.com/@swapnilbawane)

[Mar 17, 2023](https://hashnode.com/posts/understanding-reduce-in-javascript/6413781bd4168230512f1fd5/comment/64147266bdb25cbbdb03b985#reply-6414a2de4f10afbe5c4c25ad)

Thank you so much [Syed Mustassim Mustaq](https://hashnode.com/@mustassim). Yes I did not intend to make everything but the understanding felt incomplete without the illustrations, so had to make them all. Happy to hear that illustrations did the intended work :)

[Gautam Balamurali](https://hashnode.com/@ashcod)

[Mar 17, 2023](https://hashnode.com/posts/understanding-reduce-in-javascript/6413781bd4168230512f1fd5/comment/64141cca40f526b62563028c)

Nice explanation Swapnil! Which tool/platform did you use to show the illustration of working of reduce?

[Swapnil Bawane](https://hashnode.com/@swapnilbawane)

[Mar 17, 2023](https://hashnode.com/posts/understanding-reduce-in-javascript/6413781bd4168230512f1fd5/comment/64141cca40f526b62563028c#reply-6414a1d84f10afbe5c4c2575)

Thank you Gautam. I used Excalidraw to make all the illustrations. I have also added the link to it's website at the end. Hope that helps.
