This video is very quick and short. In this video you are going to learn how to convert callback into promises and then How you can Handle that promises using async/await
We can handle promises in two different way

  1. using .then().catch()
  2. using async/ await

New Promises constructor takes callback function as a argument with two function parameter (resolve, reject). Call reject function with error argument and call resolve with result as an argument

Learn How to Build REST-APIs using node.js, express and MySQL with jsonwebtoken authentication
https://www.youtube.com/playlist?list=PLtYTVIzWW8XEGCo-sAot0hgZH9Z9OSWvR

#async/wait #node #callbacks

Converting Callbacks to Promises | Handle Promises Using Async/wait
1.20 GEEK