Map

A collection that associates unique keys with values.

What is Map in JavaScript?

Map — A collection that associates unique keys with values.

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

Level: Freelancer · More JavaScript terms at this level

Updated

In other subjects