In a WeakSet, the existence of an object in the set does not prevent it from being ________ by the garbage collector.

  • Referenced
  • Mutated
  • Duplicate
  • Garbage collected
The objects in a WeakSet are weakly held, similar to WeakMap, allowing them to be garbage collected even if they are present in the WeakSet. This is useful for managing sets of objects when their presence should not hinder garbage collection.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *