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
hard
Frontend Performance
In the Try It scenario, why does hugeData remain reachable even though onClick only references summary?
A
It doesn't remain reachable — this is a trick question
B
Closures capture their ENTIRE enclosing scope, not just the specific variables the inner function references — hugeData and summary are both part of the same captured scope
C
JavaScript automatically frees unused closure variables
D
This only happens with arrays, not other data types
Check Answer