Easy
1 views
What is a closure? Show a practical example.
A closure is a function together with access to its surrounding lexical environment. The function can use those variables even after the outer function has returned. A counter factory can create indep...
Verified Model Solution
View Full Answer