Super well described.
Anybody know if this behavior has any parallels in other languages?
Nowadays with const and let block scopes are added in ES6 and above. Hence, making IIFEs less prominent as of late.
To get back to the question. Every normal language that has block scopes has this behavior. 😄
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.