Promises in Javascript
A Promise represents the state of an asynchronous operation. This asynchronous operation can be anything i.e fetching data from an API, reading contents from a file, etc.
Before promises we had callbacks, but they had fewer capabilities and lead to ...
deepansh946.hashnode.dev2 min read