Immediately Invoked Function Expressions (IIEF)

(How Immediately Invoked Function Expressions Work and When to Use Them) IIFE (pronounced “Iffy”) is an abbreviation for Immediately Invoked Function Expression, and the syntax looks like this: (function () { // Do fun stuff​ } )() It is an anonymous function expression that is immediately invoked, and it has some particularly important uses in…