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...
Frontend Performance Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Frontend Performance
A code review finds a WebSocket message handler that pushes every received message into a module-level array with no size limit or clearing logic, in an app users leave open for hours. What's the risk?
A
No risk — arrays can hold unlimited data safely
B
A genuine memory leak — every message keeps accumulating in a reachable array that's never cleared, growing unboundedly the longer the session runs, exactly matching the Concept section's opening example
C
This only matters if the WebSocket disconnects
D
This is a CPU performance issue, not a memory issue
Check Answer