In this section of the chapter, we will discuss some asynchronous language features, and, in particular, promises and the async and await keywords.
The code samples in this section have been designed to run on Node version 4 and above, which provides an ECMAScript 6 runtime. You can determine which version of Node you are running by executing the following on the command line:
node --version
You need to ensure that the return value is v4 or greater to compile and run the code samples in this section. The information returned by the version of Node used in this section is as follows:
v11.9.0