Closures in JS Flashcards
1
Q
What is a closure?
A
A portable function scope.
2
Q
What happends to the variables when a function is created?
A
They continue to be in the scope of the function.
3
Q
What is IFFE?
A
Instanly Invoked Function Expression
4
Q
The variables in the scope of the closure remains private.
True or False?
A
True
5
Q
What makes a closure?
A
A function along with his lexical scope.