There are the code examples to go along with my post on the Treehouse blog about concurrency in JavaScript. Before you do anything after downloading this project, be sure to run npm install
. After that, you can run each of the 3 different variations with an npm
script:
-
- Make sure you have Node.js 6 or later installed
- Run
npm run callbacks
- Point your favorite browser to
localhost:3000
-
- Make sure you have Node.js 6 or later installed
- Run
npm run promises
- Point your favorite browser to
localhost:3000
-
- Make sure you have Node.js 7.6 or later installed
- Run
npm run async-await
- Point your favorite browser to
localhost:3000