Pregunta de entrevista de Velotio

How would you handle memory leaks in JavaScript.