1.

What do you understand about IIFE (Immediately Invoked Function Expressions)?

Answer»

 IIFE is a JavaScript FUNCTION that starts running as soon as it is defined. The Self-Executing Anonymous Function is ANOTHER name for it. It is divided into two major sections, which are as follows:

  • The first part is a lexical scope (STATIC scope) anonymous function that is enclosed by the Grouping OPERATOR ().
  • The IIFE, which is used by JavaScript, is created in the second part. The function will be directly INTERPRETED by the engine.
 (func_() { console.log("Good Day"); })();

Output:

 Good Day


Discussion

No Comment Found