---
title: "Discussion on \"map() method in JavaScript\" | Hashnode"
description: "Discussion on \"map() method in JavaScript\". Let's see what MDN has to say:The map() method creates a new array populated with the results of calling a provided function on every element in the calling array.Here the calling array is the original array.\nLet's see some examples in order to under..."
url: "https://hashnode.com/posts/map-method-in-javascript/620d33bf25673f2740eea848"
---

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

Discussion

# [map() method in JavaScript](https://rajatgupta.net/map-method-in-javascript?utm_source=hashnode&utm_medium=feed)

Let's see what MDN has to say:The map() method creates a new array populated with the results of calling a provided function on every element in the calling array.Here the calling array is the original array. Let's see some examples in order to under...

Feb 16, 2022 · 3 min read · rajatgupta.net  
Updated Jun 17, 2023  
Read the article

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

## Written by

[Rajat Gupta](https://hashnode.com/@therajatg)

@therajatg · Rajasthan, India

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

I write about CSS, JavaScript, React and everything in between.

Hi, I am rajat. I write about react, javascript or css 4 times a week. One more thing: I would love to work as a frontend engineer (focused on ReactJS). If you have any such role, ping me at dguptarajat@gmail.com.

## Responses 2

Markdown supported · ⌘↵ to post

[Shubham Kumar](https://hashnode.com/@Shubhham)

[Feb 18, 2022](https://hashnode.com/posts/map-method-in-javascript/620d33bf25673f2740eea848/comment/620ff4d49375bf259a97ba86)

well articulate Rajat with multiple examples, it is more clear

[Rajat Gupta](https://hashnode.com/@therajatg)

[Feb 18, 2022](https://hashnode.com/posts/map-method-in-javascript/620d33bf25673f2740eea848/comment/620ff4d49375bf259a97ba86#reply-620ff96e9375bf259a97bb22)

Thanks Shubham

[Ruchi Goswami](https://hashnode.com/@RuchiGoswami)

[Feb 16, 2022](https://hashnode.com/posts/map-method-in-javascript/620d33bf25673f2740eea848/comment/620d461825673f2740eea9d1)

Good blog Rajat and please keep up the good work. Very nice examples too. I tried these examples on my own to practice.

[Rajat Gupta](https://hashnode.com/@therajatg)

[Feb 17, 2022](https://hashnode.com/posts/map-method-in-javascript/620d33bf25673f2740eea848/comment/620d461825673f2740eea9d1#reply-620dc0b9d589905b4128fad5)

Thanks Ruchi!

PS: Read my blog on filter (will write today) and reduce (will write tomorrow) too.
