: The operation failed, usually with an error message. Key Methods for Handling Results :
In programming, a is an object representing the eventual completion (or failure) of an asynchronous operation and its resulting value. Three States of a Promise : Promises, Promises
: The operation completed successfully, and you now have a value. : The operation failed, usually with an error message
: The initial state; the operation has not finished yet. : The operation failed
.finally() : Executes code regardless of whether the promise was fulfilled or rejected.