Glossary: JavaScript Beyond the Basics
Promise
Also written: promises, pending, fulfilled, rejected, settled, then, catch, finally
An object standing for a result that isn't ready yet: pending, then fulfilled with a value or rejected with a reason. `.then` chains steps, `.catch` handles failures and `.finally` runs either way.
Where the book teaches it
Related terms
async functionUnhandled rejectionPromise.all / allSettled / race / any