DEV Community

Discussion on: Emulating "Private" Variables in JavaScript with Closures and Factory Functions

Collapse
 
qm3ster profile image
Mihail Malo

How funny is it, though, that this method is still using closures, the 5 functions capturing privates :D

Thread Thread
 
somedood profile image
Basti Ortiz • Edited

It makes you realize that even though closures are so ubiquitous in JavaScript, not everyone truly understands it.