Returns the value associated with the given key, or undefined if there is none.
undefined
get(key)
key
The key of the element to return from the Map object.
Map
const map = new Map() map.set("myKey", "myValue") map.get("myKey")
"myValue"