DEV Community

Cover image for Understanding JavaScript IIFE in 7 seconds
Wassim Chegham
Wassim Chegham

Posted on

Understanding JavaScript IIFE in 7 seconds

Here is a short video animation that explains the JavaScript Immediate Invocation Function Expressions (aka. IIFE) syntax. Enjoy!

Top comments (5)

Collapse
 
irreverentmike profile image
Mike Bifulco

I appreciate the art here, but I don't know if this would be helpful to someone unless they are already familiar with IIFEs, and currying, and arrow functions. There's a lot going on here - it's worth explaining!

Collapse
 
wassimchegham profile image
Wassim Chegham

Thanks for the suggestions. I might do some animation for these concepts as well. Cheers.

Collapse
 
elasticrash profile image
Stefanos Kouroupis • Edited

wizardry

Collapse
 
bhermans profile image
Bart Hermans • Edited

Lies! :p

Collapse
 
wassimchegham profile image
Wassim Chegham

If you consider the intro and outro part of the explanation, then Yes that's 14s!
However, the real explanation section starts around T=4s and ends around T=11s :P