Advanced Concepts Flashcards

1
Q

IIFE

A

Immediately Invoked Function Expresssions

Essentially invoking a function expression immediately in order to not pollute the global namespace/have some operation be done immediately.

When used with the module pattern, this is a great way to define a private and public scope through the IIFE’s closure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly