What does this WeakMap lookup print?

from Memory management
Node 24 beginner 2 min

What does this WeakMap lookup print?

JavaScript
const roles = new WeakMap();
const session = { id: 'S-1' };
roles.set(session, 'admin');

console.log(roles.get({ id: 'S-1' }));
console.log(roles.get(session));
Open in playground
Report an error