Promises in JavaScript
It contains two properties, which are promiseState and promiseResult. PromiseState has three states: pending, fulfilled, and rejected. PromiseResult contains the data value, which will be filled later.
The Promise object supports 3 states.
The Promis...
nncodes.hashnode.dev3 min read