Converting callbacks to promises | Handle Promises using async/wait | node js tutorial
Technical Babaji Technical Babaji
52.9K subscribers
13,159 views
123

 Published On Aug 14, 2020

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
   • Build RESTful APIs with Node.js expre...  

show more

Share/Embed