minor
This commit is contained in:
parent
82ab3fb82b
commit
2009009f1f
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue