In this lecture, we hit up higher-order functions, a feature of modern languages that will shorten up your code considerably. Once you know a few of these higher-order functions, you may never write loops again. Why? Because so many of our looping algorithms follow certain patterns, we can generalize those patterns into reusable functions—leaving holes in them for the parts of algorithms that change. Those holes are formalized as parameters, which we fill by passing functions that produce the one-off behaviors.
We’ll be using these higher-order functions frequently when we build React apps.
Here’s your TODO list:
See you next time.