+ 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 ответ
+ 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