Loading topic
let, const, and var, and understand that a variable declared inside a function cannot be seen outside it. The previous chapter showed that functions are values: you can return th4 min readf turns an A into a B and g turns a B into a C, composing them gives a function that turns an A straight into a C. In JavaScript you can write this as nested calls, g(f(x)). N5 min readpipe helper from the previous chapter. All examples run as-is in Node.js 18 or later.4 min readcurry helper from the previous chapter. You should also be comfortable running snippets in Node.js.4 min readpipe helper and a curry helper and know what they return. You also need to know that array callbacks such as the one passed to map receive more than one argument.4 min readreduce. It also assumes you have read the chapter on pure functions, because recursion works best on pure inputs and outputs. You need Node.js or a browser console to run the examples.5 min readMap and run code in Node.js. Memoizatio5 min readfunction* and yield), know how for...of works, and remember the pipe helper from the chapter on composition. All examples run in Node.js 18 or later, except the section on built-in iterator helpers, which needs Node.js 22 or later.4 min readmap on arrays. It also assumes you have read the chapter on composing functions with pipe and compose. You will learn what a container is and what makes one a functor. Then you will build a Maybe container that handles missing valu5 min readmap/filter/reduce, pipe and compose, currying, and the Maybe container. You will also need Node.js 18 or later to run the examples.5 min read