Skip to main content

Closures and Higher-Order Functions

  • Chapter
  • First Online:
Beginning Functional JavaScript
  • 2972 Accesses

Abstract

In the previous chapter we saw how higher-order functions help us as a developer to create abstraction over the 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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Anto Aravinth

About this chapter

Cite this chapter

Aravinth, A. (2017). Closures and Higher-Order Functions. In: Beginning Functional JavaScript. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2656-8_4

Download citation

Publish with us

Policies and ethics