map, filter or sort,
reduce has a less intuitive usage. This article does assume you have a basic understanding of higher-order functions and ES6 syntax.
In Part 1 we took a look at setting up the basic infrastructure for a web framework — namely serving up HTML files at specific route responses. If you haven’t read Part 1, I’d start there to get up to speed as we’ll be building on the application presented in that article.
In the previous section, we set up two different types of request handlers: a
BadRequestHandler to manage 404s and other types of errors, and a
TemplateHandler to send back our HTML file requests at specific URLs. …
Throughout this tutorial, we’ll go through…