A common use case for WeakMap is to store ________ data for objects.

  • metadata
  • private
  • public
  • static
A common use case for WeakMap is to store metadata or additional information related to objects. Since WeakMap does not prevent object keys from being garbage collected, it's useful for storing data that should not interfere with garbage collection.
Add your answer
Loading...

Leave a comment

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