How to write your first Promise

Dusing Chang
2 min readSep 8, 2021
Photo by Andrew Petrov on Unsplash

What is a JavaScript Promise?

‘A Promise is a proxy for a value not necessarily known when the promise is created.’ — MDN

A Promise is a javaScript mechanism that can be used for asynchronous programming. It contains resolve and rejects functions. JS promise will process resolve function as the condition we have settled, or it process reject function. Resolve and…

--

--