From 2009009f1f13332657eb3ac6264a9ab39cc6b957 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Wed, 5 Jun 2019 14:45:50 +0300 Subject: [PATCH] minor --- 1-js/11-async/02-promise-basics/article.md | 2 +- 1-js/11-async/03-promise-chaining/article.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/11-async/02-promise-basics/article.md b/1-js/11-async/02-promise-basics/article.md index bec6851a..8cb318e4 100644 --- a/1-js/11-async/02-promise-basics/article.md +++ b/1-js/11-async/02-promise-basics/article.md @@ -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. -## Example: loadScript +## Example: loadScript [#loadscript] We've got the `loadScript` function for loading a script from the previous chapter. diff --git a/1-js/11-async/03-promise-chaining/article.md b/1-js/11-async/03-promise-chaining/article.md index f58e8aec..858f12d8 100644 --- a/1-js/11-async/03-promise-chaining/article.md +++ b/1-js/11-async/03-promise-chaining/article.md @@ -146,7 +146,7 @@ Returning promises allows us to build chains of asynchronous actions. ## 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 loadScript("/article/promise-chaining/one.js")