IIFE JavaScript – ES6 Immediately Invoked Function Expression

JavaScript Immediately-invoked Function Expressions (IIFE) An Immediately-invoked Function Expression that runs as soon as it defined. An IIFE can be used for avoiding the variable hoisting from within the blocks and they don’t pollute the global object. The following syntax represents