registerbeginnerconst reg = new FinalizationRegistry(k => console.log(k, 'collected'))
let obj = { data: 42 }
reg.register(obj, 'myKey')register() links an object to a cleanup key; the callback fires with the key when the object is GC-ed.
typeof FinalizationRegistry.prototype.register is 'function'.
Challenge: Verify register is on the prototype.