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

0

u/lewisje Feb 28 '16

Two words: private state.