DEV Community

Discussion on: An Example of a Closure in JavaScript

Collapse
 
nevkatz profile image
Nevin Katz • Edited

If you count learning BASIC when I was twelve, then that's right, it didn't have closures. At least none that I know of. Mainly a lot of GOTO statements. :) My next language was ActionScript -- It had closures but I never used them.

So yes, my mental template did not have closures in it initially, so that may be why I found it hard to wrap my head around them. I really appreciate your examples here - they are quite illuminating.