registerbeginnerconst reg = new FinalizationRegistry(k => console.log('GC:', k))
let tmp = { id: 1 }
reg.register(tmp, tmp.id)
tmp = null // allows GCSet the variable to null to allow the garbage collector to reclaim the object.
new FinalizationRegistry(() => {}) instanceof FinalizationRegistry is true.
Challenge: Verify the instanceof check.