Skip to main content

Closures and Higher Order Functions

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

Abstract

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.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Anto Aravinth, Srikanth Machiraju

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

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

Download citation

Publish with us

Policies and ethics