From cae79b54e5a4df0c57e661b8bb1dc98ed770b8f6 Mon Sep 17 00:00:00 2001 From: vasilevx Date: Fri, 29 Mar 2019 05:01:56 +0300 Subject: [PATCH] Fix function parameter As in example above --- 1-js/11-async/02-promise-basics/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/11-async/02-promise-basics/article.md b/1-js/11-async/02-promise-basics/article.md index bf70ee13..daa77c50 100644 --- a/1-js/11-async/02-promise-basics/article.md +++ b/1-js/11-async/02-promise-basics/article.md @@ -58,7 +58,7 @@ We can see two things by running the code above: 1. The executor is called automatically and immediately (by the `new Promise`). 2. The executor receives two arguments: `resolve` and `reject` — these functions are pre-defined by the JavaScript engine. So we don't need to create them. Instead, we should write the executor to call them when ready. -After one second of "processing" the executor calls `resolve("done")` to produce the result: +After one second of "processing" the executor calls `resolve("done!")` to produce the result: ![](promise-resolve-1.png)