4 ms·
The point of an IIFE is that it is immediately invoked, i.e.: `(function () { })()` - the outer function is used to return the inner function at that point. So
by skilldrick 16y ago
The point of an IIFE is that it is immediately invoked, i.e.: `(function () { })()` - the outer function is used to return the inner function at that point. So you're returning the inner function, and it's this function, a closure, that is returned.
I'm not sure what's iffy about the terminology here...