fix missing closing brace and bracket for promise (#37474)

There was a missing closing brace, bracket and semi-colon for the constructor new Promise in its definition
pull/37715/head
Louisa 2019-11-07 22:24:54 +04:00 committed by Oliver Eyton-Williams
parent 647945f4ac
commit 2287d73b4f
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ const myPromise = new Promise((resolve, reject) => {
} else {
reject("Promise was rejected");
}
});
```
The example above uses strings for the argument of these functions, but it can really be anything. Often, it might be an object, that you would use data from, to put on your website or elsewhere.