GEP interview question

How do you do memory management in JavaScript