Promises - thelastmile/FreeCodeCamp GitHub Wiki

ES6 Promises

A new feature of ES6 to help with async programming.

syntax

new Promise(executor);
new Promise(function(resolve, reject) { ... });

MDN image

read more at MDN