Merge pull request #2833 from ArSn/ArSn-add-the-1

added missing "the"
This commit is contained in:
Ilya Kantor 2022-01-21 13:51:34 +03:00 committed by GitHub
commit bd0921bd85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ new Promise(function(resolve, reject) {
});
```
Here the first `.then` shows `1` and returns `new Promise(…)` in the line `(*)`. After one second it resolves, and the result (the argument of `resolve`, here it's `result * 2`) is passed on to handler of the second `.then`. That handler is in the line `(**)`, it shows `2` and does the same thing.
Here the first `.then` shows `1` and returns `new Promise(…)` in the line `(*)`. After one second it resolves, and the result (the argument of `resolve`, here it's `result * 2`) is passed on to the handler of the second `.then`. That handler is in the line `(**)`, it shows `2` and does the same thing.
So the output is the same as in the previous example: 1 -> 2 -> 4, but now with 1 second delay between `alert` calls.