---
title: "Discussion on \"Difference between map, filter and reduce\" | Hashnode"
description: "Discussion on \"Difference between map, filter and reduce\". Map\nThis is a function which we use when we want to transform the array.\nconst arr = [5, 1, 3, 2, 6];\n\n//UseCase\n1.Double - [10,2,6,4,12]\n2.Triple - [15,3,9,6,18]\n3.Binary - [\"101\", \"1\", \"11\", \"10\", \"110\"]\n\nconst arr = [5, 1, 3, 2, 6];\nconst output =..."
url: "https://hashnode.com/posts/difference-between-map-filter-and-reduce/6575a1cf2916c674df006168"
---

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

Discussion

# [Difference between map, filter and reduce](https://pranavk11.hashnode.dev/difference-between-map-filter-and-reduce?utm_source=hashnode&utm_medium=feed)

Map This is a function which we use when we want to transform the array. const arr = \[5, 1, 3, 2, 6\]; //UseCase 1.Double - \[10,2,6,4,12\] 2.Triple - \[15,3,9,6,18\] 3.Binary - \["101", "1", "11", "10", "110"\] const arr = \[5, 1, 3, 2, 6\]; const output =...

Dec 10, 2023 · 2 min read · pranavk11.hashnode.dev  
Read the article

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

## Written by

[Pranav Katkar](https://hashnode.com/@Pranav30)

@Pranav30 · mumbai

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

Developer

Software developer!!!! Always learning and exploring 🏀🚀

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
