What does this JavaScript program print?

from Hash maps
Node 24 intermediate 3 min

What does this JavaScript program print?

JavaScript
const keys = new Map();
const first = { id: 7 };
keys.set(first, "first");
keys.set({ id: 7 }, "second");
keys.set(NaN, "old");
keys.set(Number("bad"), "new");
console.log(keys.size);
console.log(keys.get({ id: 7 }));
console.log(keys.get(NaN));
Open in playground
Report an error