---
title: "Discussion on \"Reduce callback function in JavaScript\" | Hashnode"
description: "Discussion on \"Reduce callback function in JavaScript\". Reduce is a very vast and powerful callback function that can be used for array in many different ways.\nconst pep = [2,3,4,5,6,7,8];\n\nconst sums = pep.reduce((ini, curr) => ini + curr);\n\n\n// The variable sums now hold the total from the reduce callba..."
url: "https://hashnode.com/posts/reduce-callback-function-in-javascript/600ecc8c3b349540feba027f"
---

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

Discussion

# [Reduce callback function in JavaScript](https://webdevnote.hashnode.dev/reduce-callback-function-in-javascript?utm_source=hashnode&utm_medium=feed)

Reduce is a very vast and powerful callback function that can be used for array in many different ways. const pep = \[2,3,4,5,6,7,8\]; const sums = pep.reduce((ini, curr) => ini + curr); // The variable sums now hold the total from the reduce callba...

Jan 25, 2021 · 2 min read · webdevnote.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#code](https://hashnode.com/tag/code)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Victor Adeshile](https://hashnode.com/@davik4life)

@davik4life

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

I Code

I am CEO (Webtek-Masters Innovation) and I love everything tech! I am a Father of one Angel, a Husband, and I'm always in a student mode. Learning something new everyday excites and inspires me.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
