keysbeginnerconst m = new Map([['a', 1], ['b', 2]])
for (const k of m.keys()) {
console.log(k) // 'a', 'b'
}Use Map.keys() to iterate over all keys in insertion order.
Keys are iterated in insertion order.
Challenge: Verify that keys come out in the order they were inserted.