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

Опубликовано: 24 Февраль 2025
на канале: 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...