# Map

A collection that associates unique keys with values.

## What is **Map** in JavaScript?

**Map** — A collection that associates unique keys with values.

```javascript
const prices = new Map();
prices.set("tea", 3);
```

Level: Freelancer · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/freelancer)

Updated: September 28, 2026

## In other subjects

- [Map in Java](https://www.ask-codey.com/glossary/map-java)

Source: https://www.ask-codey.com/glossary/map-javascript-2
