Demystifying JavaScript Closures, Callbacks and IIFEs

Felgall, the MDN example you’re referencing is virtually identical to the article’s “Point 2” example.