immediately invoked function expression javascript example
Example: IFFI in js
// This function will be invoked right away we don't have to call it
(function () {
console.log("This is an IIFE");
})();
// This function will be invoked right away we don't have to call it
(function () {
console.log("This is an IIFE");
})();