Question 10 of 10Pro Only
Explain JavaScript memory management and garbage collection. What causes memory leaks and how do you prevent them?
Sample answer preview
## JavaScript Memory Management JavaScript uses **automatic memory management** through garbage collection (GC). Understanding how it works helps you write more efficient code and avoid memory leaks. ## Memory Lifecycle 1.
garbage collectionmemory leakWeakMapWeakSetheapreference