Converting Javascript callbacks to Promise and async-await & replacing async-waterfall method with...

added by JavaScript Kicks
11/13/2019 9:55:47 AM

333 Views

Take this simple function that uses a callback to print the full name. And now converting it to a Promise, it will be like below. And note, the console.log() is a function in JavaScript, which is what I have used above as a callback.


0 comments