In JavaScript, we rarely think about memory management. It appears natural that we create variables, use them and the browser takes care about low-level details.
But as applications become complex and AJAXy, and a visitor stays on a page for a long time, we may notice problems like a browser takes 1G+ and grows larger and larger in size. That’s usually because of memory leaks.
Here we discuss the memory management and most frequent types of leaks.