---
title: "Discussion on \"A brief look at the reduce() function in JavaScript\" | Hashnode"
description: "Discussion on \"A brief look at the reduce() function in JavaScript\". The array method reduce can be a tricky one to grasp. Reduce takes some items, iterates over them and returns one value.\n.reducer() takes two parameters:\n\nAccumulator - fancy way of saying ‘previous state’ or ‘previous value’. Often passed in as acc ..."
url: "https://hashnode.com/posts/a-brief-look-at-the-reduce-function-in-javascript/6049dc31258b6d5f4339f970"
---

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

Discussion

# [A brief look at the reduce() function in JavaScript](https://davidbell.hashnode.dev/a-brief-look-at-the-reduce-function-in-javascript?utm_source=hashnode&utm_medium=feed)

The array method reduce can be a tricky one to grasp. Reduce takes some items, iterates over them and returns one value. .reducer() takes two parameters: Accumulator - fancy way of saying ‘previous state’ or ‘previous value’. Often passed in as acc ...

Mar 11, 2021 · 2 min read · davidbell.hashnode.dev  
Updated Mar 18, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[David Bell](https://hashnode.com/@davidbell)

@davidbell · Birmingham, England

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

Self taught developer, working with Nextjs, TypeScript, Graphql and React.

## Responses 1

Markdown supported · ⌘↵ to post

[Lize du Plessis](https://hashnode.com/@Lize)

[Jan 5, 2022](https://hashnode.com/posts/a-brief-look-at-the-reduce-function-in-javascript/6049dc31258b6d5f4339f970/comment/61d56ad6e2f29f0805e13004)

This is super helpful!
