DEV Community

Discussion on: Higher-Order Functions(HoF) in JavaScript - Explain Like I'm Five

Collapse
 
tleperou profile image
Thomas Lepérou

I still struggle with HoF posts which don't mention closure. I either misunderstand closure concept or HoF purpose. Any guidance?

Collapse
 
atapas profile image
Tapas Adhikary

Hey Thomas, thanks for reading. I kept out closure intentionally in this post. Closure and HoF are integral to each other but when I started explaining it I wanted to focus on the simlicity of understanding HoF with simple examples. The next in the line is to go closure and currying to complete the triology 😀.