DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
JavaScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
JavaScript
Why can't you iterate over a WeakMap's entries?
A
It's a performance limitation that will be fixed in a future spec version
B
Because entries can be garbage collected at any moment (non-deterministic GC timing), so exposing iteration would expose unpredictable, timing-dependent behavior
C
WeakMaps can only hold one entry at a time
D
Iteration was never implemented due to a spec oversight
Check Answer