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.
size goes from non-zero to zero after clear().
Challenge: Verify that size changes from 3 to 0 after clear().