addbeginnerconst ws = new WeakSet()
const o = {}
ws.add(o).add(o)
ws.has(o) // β true (no duplicates)Adding the same object twice has no effect; WeakSet stores unique references.
ws.add(obj) returns the WeakSet itself.
Challenge: Verify add returns the WeakSet.