.then?

  • fetch returns a Promise
  • Promises collapse a callback into a .then method
  • Instead of calling like setTimeout, you put your callback in a .then method
  • .then returns another Promise so you can chain .then calls
  • If the callback in .then returns a promise, it gets absorbed into the first Promise

19 / 25