In this chapter, we went over several ways of defining functions in JavaScript, focusing mainly on arrow functions, which have several advantages over standard functions, including being terser. We learned about the concept of currying (which we'll be revisiting later), considered some aspects of functions as first-class objects, and lastly, we considered several techniques that happen to be fully FP in concept. Rest assured that we'll be using everything in this chapter as the building blocks for more advanced techniques in the rest of the book; just wait and see!
In Chapter 4, Behaving Properly – Pure Functions, we will delve even more deeply into functions and learn about the concept of pure functions, which will lead us to an even better style of programming.Â