r/javaScriptStudyGroup • • Feb 08 '16

Closures

One thing I've always noticed about Closures is that it seems to me really hard to find examples that have any kind of immediate practical use.
So I decided to give such a thing a go. Focusing on avoiding redeclaration of a variable

Closure Example
Hopefully it makes sense.

4 Upvotes

5 comments sorted by

View all comments

2

u/[deleted] Feb 15 '16

Great example. Thanks for sharing! I have been working on closures this week a lot, and this reassures me that what I am learning is right.