hasbeginnerconst ws = new WeakSet()
const o = {}
ws.add(o)
ws.has(o) // β trueUse has() to guard operations that should only run once per object.
Objects passed to the constructor are present immediately.
Challenge: Verify has() for constructor-initialized objects.