WeakMap & WeakSet
Which operation would be impossible to implement with WeakMap?
Counting entries is impossible with WeakMap because: 1) WeakMap intentionally doesn't provide any methods to enumerate its contents, 2) This restriction exists because entries can be garbage collected at any time, 3) Any count would be immediately outdated as garbage collection occurs, 4) This limitation is fundamental to WeakMap's weak reference implementation, 5) It prevents observation of the garbage collection process, 6) This design ensures consistent garbage collection behavior, 7) The lack of enumeration methods is a deliberate part of WeakMap's design, 8) This characteristic distinguishes WeakMap from regular Map and other collections.