Closures and Higher Order Functions

  • Anto Aravinth
  • Srikanth Machiraju


In the previous chapter we saw how higher order functions help developers create abstraction over common problems. It’s a very powerful concept, as we learned. We have created our sortBy higher order function to showcase a valid and relevant example of the use case. Even though the sortBy function is working on the basis of higher order functions (which is again the concept of passing functions as arguments to the other functions), it has something to do with yet another concept called closures in JavaScript.

Copyright information

© Anto Aravinth, Srikanth Machiraju 2018

Authors and Affiliations

  • Anto Aravinth
    • 1
  • Srikanth Machiraju
    • 2
  1. 1.ChennaiIndia
  2. 2.HyderabadIndia

Personalised recommendations