Promise

/ˈprɑmɪs/ noun

Definition

An object representing the eventual completion or failure of an asynchronous operation and its resulting value. Promises provide a cleaner alternative to callback functions for handling asynchronous code.

Etymology

From Latin 'promissum' meaning 'a pledge' or 'assurance'. In programming, the term was adopted in the 1970s but gained prominence in JavaScript in the 2010s, representing a 'promise' that a value will eventually be available.

Kelly Says

A promise is like ordering food for delivery - you get a receipt (the promise object) immediately, but the actual food (the value) comes later. You can plan what to do when it arrives (then) or what to do if something goes wrong (catch), all without blocking your doorway!

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.