Question d’entretien chez Salesforce

How does garbage collection work in Javascript?