# map()

An Array method that creates a new array by transforming every item.

## What does **map()** do in JavaScript?

**map()** — An Array method that creates a new array by transforming every item.

```javascript
const prices = [2, 3, 4];
const doubled = prices.map(price => price * 2);
```

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

Updated: September 27, 2026

## In other subjects

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

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