How Garbage Collection Works in JavaScript | DevPrep