Map and Set in JavaScript
What Map is?
A Map is a collection of key-value pairs.
Syntax:
const map = new Map();
map.set("name", "Joe");
map.set(1, "Number key");
map.set(true, "Boolean key");
console.log(map.get("name")); //
skullcoder.hashnode.dev2 min read