In this chapter, we went over several ways of defining functions in JS, focusing mainly on arrow functions, which have several advantages over standard functions, including being more terse. We showed the concept of currying (which we'll be revisiting later), considered some aspects of functions as first class objects, and we finally considered several JS techniques that happen to be fully FP in concept.
In Chapter 4, Behaving Properly - Pure Functions, let's delve even more deeply into functions, and thus introduce the concept of pure functions, which will lead us to even better style programming.Â