Javascript
100 Front End Interview Questions Challenge

iife

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

'iife' stands for "immediately invoked function expression".

An iife is written like an entire function call within paranthesis, and then immediately 'invoked' with a pair of parenthesis. The result of an iffe can be stored in a variable, but anything declared in the scope of the iffe will not be accessible from anywhere else.

 

I finished! On to the next chapter