Domanda di colloquio di Velotio

How would you handle memory leaks in JavaScript.