From 48261eb97e2fda567d09e9456fd74f6dc4e86389 Mon Sep 17 00:00:00 2001 From: Jonathan Chue <5141427+jchue@users.noreply.github.com> Date: Thu, 2 Jan 2020 12:36:56 -0800 Subject: [PATCH] Update as per @paroche's comments --- 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 6dd8d1f1..97f75ebf 100644 --- a/1-js/11-async/02-promise-basics/article.md +++ b/1-js/11-async/02-promise-basics/article.md @@ -31,7 +31,7 @@ When the executor obtains the result, be it soon or late - doesn't matter, it sh - `resolve(value)` — if the job finished successfully, with result `value`. - `reject(error)` — if an error occurred, `error` is the error object. -So to summarize: the executor runs automatically. It performs a job and then calls either `resolve` or `reject`. +So to summarize: the executor runs automatically and attempts to perform a job. When it is finished with the attempt it calls `resolve` if it was succssful or `reject` if there was an error. The `promise` object returned by the `new Promise` constructor has internal properties: