DEV Community

Discussion on: 2 Examples To Help You Understand JS Closures Once And For All 🙃

Collapse
 
aminmansuri profile image
hidden_dude

Its an example of functional programming being able to represent OO programing (as in the SICP text book). Even if Javascript didn't support objects, using closures and currying can give you "objects" with pure functional constructs.