14 lines
443 B
Markdown
14 lines
443 B
Markdown
---
|
|
title: The Es6 Promises
|
|
---
|
|
A new feature of ES6 to help with async programming.
|
|
|
|
## syntax
|
|
|
|
new Promise(executor);
|
|
new Promise(function(resolve, reject) { ... });
|
|
|
|

|
|
|
|
read more at <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise' target='_blank' rel='nofollow'>MDN</a>
|