This commit is contained in:
Ilya Kantor 2019-06-05 14:45:50 +03:00
parent 82ab3fb82b
commit 2009009f1f
2 changed files with 2 additions and 2 deletions

View file

@ -278,7 +278,7 @@ The good thing is: a `.then` handler is guaranteed to run whether the promise ta
Next, let's see more practical examples of how promises can help us to write asynchronous code. Next, let's see more practical examples of how promises can help us to write asynchronous code.
## Example: loadScript ## Example: loadScript [#loadscript]
We've got the `loadScript` function for loading a script from the previous chapter. We've got the `loadScript` function for loading a script from the previous chapter.

View file

@ -146,7 +146,7 @@ Returning promises allows us to build chains of asynchronous actions.
## Example: loadScript ## Example: loadScript
Let's use this feature with `loadScript` to load scripts one by one, in sequence: Let's use this feature with the promisified `loadScript`, defined in the [previous chapter](/promise-basics#loadscript), to load scripts one by one, in sequence:
```js run ```js run
loadScript("/article/promise-chaining/one.js") loadScript("/article/promise-chaining/one.js")