---
title: "Discussion on \"Map and Set in JavaScript\" | Hashnode"
description: "Discussion on \"Map and Set in JavaScript\". Maps\nA map in javascript is powerful way to store key-value pairs\nconst map = new Map();\n\nmap.set(100,\"Police Department\");\nmap.set(101,\"Fire Department\");\nmap.set(108,\"Ambulance Department\")\nmap.set("
url: "https://hashnode.com/posts/map-and-set-in-javascript/69d3f9b040c9cabf4469cfa3"
---

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

Discussion

# [Map and Set in JavaScript](https://map-and-set-in-js-hrishikesh.hashnode.dev/map-and-set-in-javascript?utm_source=hashnode&utm_medium=feed)

Maps A map in javascript is powerful way to store key-value pairs const map = new Map(); map.set(100,"Police Department"); map.set(101,"Fire Department"); map.set(108,"Ambulance Department") map.set(

Apr 6 · 2 min read · map-and-set-in-js-hrishikesh.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#maps](https://hashnode.com/tag/maps)
-   [#sets](https://hashnode.com/tag/sets)

## Written by

[Hrishikesh Shanbhag](https://hashnode.com/@HrishikeshShanbhag)

@HrishikeshShanbhag

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
