in JavaScript what is the meaning of "IIFE" 😉 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12

in JavaScript what is the meaning of "IIFE" 😉

In javascript there are three kind of function i. regular function expression ii.anonymous function expression iii.IIFE

12th Aug 2018, 1:23 PM
Real Gutch
Real Gutch - avatar
1 Answer
+ 11
Immediately Invoked Function Expression. The function is called as soon as it's defined. E.g: var my_var = (function (x, y, z) { return x + y - z })(1, 3, 2);
12th Aug 2018, 2:28 PM
Aidan Haddon-Wright
Aidan Haddon-Wright - avatar