Collections

Map

Learn how to use Map in JavaScript.

Map

Documentation for Map in JavaScript.

Syntax

new Map([["key", "value"]])

Example

// Practical usage
new Map([["key", "value"]])
console.log("Executed successfully.");

Notes

JavaScript provides powerful built-in methods for the web.

Try It Yourself

You can run JavaScript directly in the BrowserCode Playground.