JavaScript | Testing And Optimization | Question 3

Last Updated :
Discuss
Comments

What is the purpose of JavaScript's garbage collector?

Manages CPU usage

Frees memory of unused variables

Automatically removes unreferenced objects to free memory

Stops memory leaks

Share your thoughts in the comments