forEachintermediateconst 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 third argument to the callback is the Map itself.
Challenge: Verify that the callback receives the Map as the third argument.