In Javascript, an IIFE stands for an Immediately-Invoked Function Expression: a function expression that gets invoked immediately after it is defined, such as (function(){ /* code */ })();
In ES5, writing such code has been considered as good practice: (function () { //some magic })(); But in ES6 variables created with …
javascript ecmascript-6 encapsulation iife