Promise
Also known as JavaScript Promise
A JavaScript object representing an eventual result: it starts pending and settles as fulfilled with a value or rejected with a reason.
In the real world
fetch('/api/terms').then(response => response.json()).then(showTerms).catch(showError); handles an eventual result.