DEV Community

loading...

Discussion on: Closures in JavaScript

Collapse
nitricware profile image
Kurt Höblinger

What‘s the benefit of closures over classes?

Collapse
superfola profile image
Alexandre Plateau

Hope this helps you to understand which one is better: wiki.c2.com/?ClosuresAndObjectsAre...

Collapse
proiacm profile image
CiaraMaria Author

Closures offer simplicity whereas classes have better performance.
I found this to be helpful as well: medium.com/engineering-livestream/...