WeakMap & WeakSet
Which of these operations is NOT available on WeakMap?
WeakMap doesn't support enumeration methods: 1) WeakMap intentionally lacks methods for listing keys or values, 2) This limitation exists because entries could disappear at any time due to garbage collection, 3) You cannot iterate over WeakMap entries or get their count, 4) Available methods are limited to get(), set(), has(), and delete(), 5) This design ensures WeakMap's garbage collection behavior works correctly, 6) The lack of enumeration prevents you from observing the garbage collection process, 7) This restriction is fundamental to WeakMap's weak reference implementation, 8) Understanding these limitations is crucial for proper WeakMap usage.