Sign up
Sign in
In this example, the inner function still has access to the count variable inside outerFunction. Each time you call closure(), it increases count and shows it.
count
outerFunction
closure()
Arnold Gunter
gravity well (Rob Tomlin)
Follow
--
1
Share
Why?
Software Engineering Manager. Explorer, learner, teacher, and more
Help
Status
About
Careers
Press
Blog
Privacy
Terms
Text to speech
Teams