Demystifying JavaScript Closures, Callbacks and IIFEs

Sorry Daz, but your example is not helpful in regard to closures. The following diagram might help to clarify things.


It’s from another useful blog post on Closures