forEachbeginnerconst m = new Map([['a', 1], ['b', 2]])
m.forEach((val, key) => console.log(key, val))
// 'a' 1, then 'b' 2Use Map.forEach() to execute a callback for each key-value pair in the map.
The second argument to the callback is the key.
Challenge: Use forEach to collect all keys into an array.