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
Which best describes why closures give you 'privacy' for module-pattern state?
A
JavaScript has a `private` keyword closures use internally
B
There is no path through the scope chain that reaches the closed-over variable from outside
C
Closures automatically encrypt captured variables
D
Privacy is enforced at compile time by TypeScript only, not JavaScript itself
Check Answer