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...
Markdown supported · ⌘↵ to post
Pulkit Govrani
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.