1let myMap = new Map();
2
3myMap.set("key1", "value1");
4myMap.set("key2", "value2");
5
6console.log(myMap.has("key1")); // true
7console.log(myMap.has("key2")); // true
8
9console.log(myMap.get("key1")); // value1
10console.log(myMap.get("key2")); // value2
11
12// NOTE: DO NOT try to access map values using [].
13// myMap["key1"] = "value1";