
TL;DR: In ES6, an IIFE is implemented as follows:
… Unlike ES5, which is syntactically less opinionated, in ES6, when using an IIFE, parenthetical order matters. For instance, in ES5 an IIFE could be written either as:
… or
As can be seen in the above examples, in ES5 one could either wrap and invoke a function… Continue Reading