iifi function code example
Example 1: immediate invoke function js
(function () {
statements
})();
Example 2: IFFI in js
// This function will be invoked right away we don't have to call it
(function () {
console.log("This is an IIFE");
})();