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
This commit is contained in:
parent
647945f4ac
commit
2287d73b4f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user