Closures in JS Flashcards

1
Q

What is a closure?

A

A portable function scope.

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

What happends to the variables when a function is created?

A

They continue to be in the scope of the function.

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

What is IFFE?

A

Instanly Invoked Function Expression

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

The variables in the scope of the closure remains private.

True or False?

A

True

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

What makes a closure?

A

A function along with his lexical scope.

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