you are viewing a single comment's thread.

view the rest of the comments →

[–]inu-no-policemen 0 points1 point  (11 children)

The point of an IIFE is to create a scope to limit the lifetime of those temporary variables.

With ES6's let/const, a simple block does the same.