/async-js-workshop

Async JS workshop for LI

Primary LanguageJavaScript

async-js-workshop

You will need:

  • Some familiarity with JavaScript and npm
  • Node 8
  • Your favorite text editor
  • Your favorite terminal

Contents

  • Exercise 00 - Why is async hard?
  • Exercise 01 - Intro to error-first callbacks
  • Exercise 02 - Multiple error-first callbacks
  • Exercise 03 - Wrapping an error-first callback in a promise
  • Exercise 04 - Handling promises with .then()
  • Exercise 05 - Promise chaining
  • Exercise 06 - Async/await 🎉
  • Exercise 07 - Handling multiple promises with async/await