Fork me on GitHub

Simple example of a promise in JavaScript. See “Javascript Promises explained”