---
title: "Discussion on \".reduce method in JavaScript\" | Hashnode"
description: "Discussion on \".reduce method in JavaScript\". Let’s start with .reduce inBuilt function.\n\nThe Reduce() method uses the reducer function that iterates through each element in the array and returns the single input\n***Syntax\narr.reduce(callback(accumulator, currentValue), initialValue)***\n\nLet’s s..."
url: "https://hashnode.com/posts/reduce-method-in-javascript/640a09369d4973581034197e"
---

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

Discussion

# [.reduce method in JavaScript](https://shabrezdev.hashnode.dev/reduce-method-in-javascript?utm_source=hashnode&utm_medium=feed)

Let’s start with .reduce inBuilt function. The Reduce() method uses the reducer function that iterates through each element in the array and returns the single input \*\*\*Syntax arr.reduce(callback(accumulator, currentValue), initialValue)\*\*\* Let’s s...

Mar 9, 2023 · 3 min read · shabrezdev.hashnode.dev  
Read the article

-   [#reduce-method](https://hashnode.com/tag/reduce-method)
-   [#reduce-in-js](https://hashnode.com/tag/reduce-in-js)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js-functions](https://hashnode.com/tag/js-functions)
-   [#array-javascript-array-methods-map-filter-foreach](https://hashnode.com/tag/array-javascript-array-methods-map-filter-foreach)

## Written by

[Shabrez G](https://hashnode.com/@shabrez)

@shabrez

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
