FlashcardIntermediate
Closures Capture Variables, Not Values
A closure lets a function remember and access variables from the scope where it was defined.
Question
What is a closure, and what does it capture from its surrounding scope?
Click to reveal answer