From 2287d73b4fb23cbde6d2f55b9d64921c0962794e Mon Sep 17 00:00:00 2001 From: Louisa <46016065+loetcodes@users.noreply.github.com> Date: Thu, 7 Nov 2019 22:24:54 +0400 Subject: [PATCH] fix missing closing brace and bracket for promise (#37474) There was a missing closing brace, bracket and semi-colon for the constructor new Promise in its definition --- .../es6/complete-a-promise-with-resolve-and-reject.english.md | 1 + 1 file changed, 1 insertion(+) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.english.md index a7d980c590..6c273c58a3 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.english.md @@ -16,6 +16,7 @@ const myPromise = new Promise((resolve, reject) => { } else { reject("Promise was rejected"); } +}); ``` The example above uses strings for the argument of these functions, but it can really be anything. Often, it might be an object, that you would use data from, to put on your website or elsewhere.