What are Promises in Javascript?
If an interviewer asks you "What do you understand by promises"? Then what will be your answer?
Here's the cleanest answer from the mdn documentation:
" A promise is basically an object which tells the eventual completion or failure of an asynchronou...
pulkitgovrani.hashnode.dev2 min read
Chirag Agrawal
Your explanation of the three states of a promise - pending, fulfilled, and rejected - was clear and concise, making it easy for readers to understand the lifecycle of a promise.