.has(key)
returns true or false based on the presence of a key
.get(key)
returns the value associated with a key
.set(key, value)
sets a new key, value pair
.delete(key)
removes a key, value pair
.clear()
removes all key, value pairs
.entries()
returns an array of all the keys in insertion order
.values()
returns an array of all the values in insertion order
freeCodeCamp
, Awesome!
to it.
freeCodeCamp
, Awesome!
.
testString: assert(myMap.get('freeCodeCamp') === 'Awesome!');
```