The ES6 Promises

The ES6 Promises
0

#1

A new feature of ES6 to help with async programming.

syntax

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

read more at MDN