DEV Community

Discussion on: An Example of a Closure in JavaScript

Collapse
 
nevkatz profile image
Nevin Katz

There may not be a reason to if classes do what you need them to. That said I think it is important to be able to recognize closures in a codebase you end up working with. I myself am interested in starting to use JavaScript class syntax so I'll keep this question in mind.