const myMap = new Map()// setting the valuesmyMap.set("foo", "value associated with 'a string'")myMap.set("Bar", 'value associated with keyObj')myMap.set("1", 'value associated with keyFunc')
OUTPUT:**1. ▶0: Array[2]1. 0: "foo"2. 1: "value associated with 'a string'"2. ▶1: Array[2]1. 0: "Bar"2. 1: "value associated with keyObj"3. ▶2: Array[2]1. 0: "1"2. 1: "value associated with keyFunc"**