DEV Community

Discussion on: A toddlers guide to memory leaks in Javascript

Collapse
 
kepta profile image
Kushan Joshi

As long as the ‘hello’ variable is in reference ( global or modular ), it will keep leaking memory.
You can run the hello function yourself and see memory usage increasing.