https://en.m.wikipedia.org/wiki/Immediately_invoked_function...
You could (ab)use `var` to initialize the variable outside the IIFE scope so you can see the values produced by the last IIFE call.
https://github.com/kristopolous/_inject
You can basically wander around any function context at any arbitrary time and see what happened. It exploits the reference counter to keep the contexts from being destroyed. It was really great back when I did a lot of client side js
The killer app version of this would be to open a repl at any context. As it stands it requires a good bit of competency to do it well.
https://firefox-source-docs.mozilla.org/devtools-user/debugg...
Edit: just realized this is literally the first thing mentioned in the linked article.