EDIT: This is just a simple example to demontrate the concern I have with a much larger program. I wouldn\'t use this actual code for anything :)
If I r
A new closure is created every time the timeout callback is called, as you correctly say. But once the callback has been executed, there is no longer anything referencing the previous closure, so it can be garbage collected.