clearbeginnerconst m = new Map([['a', 1], ['b', 2]])
m.clear()
console.log(m.size) // β 0Use Map.clear() to remove all key-value pairs from the map.
Calling clear() on an already empty Map is safe and does nothing.
Challenge: Verify that clearing an empty Map doesn't throw.