What is a closure, in plain terms?
Ask QuestionAsked 1 days agoViewed 2.0k times
I keep hearing the word but the textbook definitions confuse me. Can someone explain it without jargon?
LO
1 Answer
- ✓✓ Accepted answer
A closure is a function bundled with the variables it captured from its defining scope. The function keeps access to them even after that scope returns.
MW