What are the ways to deal with Asynchronous Code in JavasScript?

  • Callbacks
  • Promises
  • async/await
  • Libraries like async.js, bluebird, q, co