Summary
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 reviewed 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 this book; just wait and see!
In Chapter 4, Behaving Properly, we will delve even more deeply into functions and learn about the concept of pure functions, leading us to an even better programming style.