This is part 6 of the tutorial series Learn Javascript in Construct . This part continues on from part 5. So in case you missed it, see Learn Javascript in Cons...
Now, knowing about that 'closure' thing I suspect: thats how actions in event sheets refers to each other inside one event. It still a mystery how long collected 'garbage' info is available down the events/sub events but I'm too afraid to dig deeper.