Before we move on to some specific examples, Node.js must be installed. If you happen to not have Node.js set up already, you can obtain installation instructions and all the necessary resources from https://nodejs.org/.
In order to verify the installation, simply type the following in the console:
node -v
At the time of writing, the LTS (long term support) version was 6.9.1.
The Node.js examples presented in this chapter will be rather simplistic. The point of the chapter is not to create bullet-proof Node.js modules, but rather to present and discuss the ideas and code them in such a way that our code is self-explanatory and easy to read and understand.
Since we will be editing simple JS files that are just text files, you can use whatever editor you find suitable for the task. However...