hasbeginnerconst m = new Map([['a', 1]])
m.has('a') // β true
m.has('z') // β falseUse Map.has() to check whether a key exists in the map.
has(key) returns true if the key exists in the Map.
Challenge: Verify that has() returns true for an existing key.