JavaScript Promises

“I Promise a Result!”

“Producing code” is code that can take some time

“Consuming code” is code that must wait for the result

A Promise is an Object that links Producing code and Consuming code

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise

https://www.geeksforgeeks.org/promise-vs-callback-in-javascript/

https://www.w3schools.com/js/js_promise.asp

FavoriteLoadingAdd to favorites
Spread the love

Author: Shahzad Khan

Software developer / Architect