The finished code examples for my post about asynchrony in JavaScript on the Treehouse Blog
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
async-await.js
callbacks.js
package-lock.json
package.json
promises.js

README.md

JavaScript Asynchrony Treehouse Blog Post Examples

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:

  1. Callbacks

    • Make sure you have Node.js 6 or later installed
    • Run npm run callbacks
    • Point your favorite browser to localhost:3000
  2. Promises

    • Make sure you have Node.js 6 or later installed
    • Run npm run promises
    • Point your favorite browser to localhost:3000
  3. async/await

    • Make sure you have Node.js 7.6 or later installed
    • Run npm run callbacks
    • Point your favorite browser to localhost:3000