Converting callbacks to promises | Handle Promises using async/wait | node js tutorial

Published: 14 August 2020
on channel: Technical Babaji (Tarique Akhtar)
13,367
122

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...  


Watch video Converting callbacks to promises | Handle Promises using async/wait | node js tutorial online without registration, duration hours minute second in high quality. This video was added by user Technical Babaji (Tarique Akhtar) 14 August 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 13,367 once and liked it 122 people.