Pergunta de entrevista da empresa Velotio

How would you handle memory leaks in JavaScript.