509 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