JavaScript Closures and Scope

The scope chain drawn out, then closures at work as private counters and run-once functions, with the var loop and memory traps.