This course has been updated! We now recommend you take the JavaScript Performance course.
Check out a free preview of the full Website Performance course:
The "Dynamic Memory Allocation" Lesson is part of the full, Website Performance course featured in this preview video. Here's what you'd learn in this lesson:
JavaScript allows you to create variable and elements in the DOM, and then remove the references to those objects. This flags the object for garbage collection and it will be eventually removed. The time the object is removed, however, is arbitrary.