DEV Community

Discussion on: Five Pro Tips to Master Promises in JS

Collapse
 
timomeh profile image
Timo Mämecke • Edited

Your intro to Tip #5 isn't quite right. When you use promises, you don't need to nest them, thus reducing the "callback hell". Async-await isn't the solution to the callback hell – promises are!

promise
  .then(() => {
    return promise_like
  })
  .then(() => {
    return promise_like
  })
  .then(() => {
    return promise_like
  })
Enter fullscreen mode Exit fullscreen mode