From 8b5693dbfe4ea37b84e2bcb3fd5efaa2be6728dc Mon Sep 17 00:00:00 2001 From: Simon Holdorf Date: Wed, 28 Aug 2019 21:54:27 +0200 Subject: [PATCH] Fixed spelling error So here JavaScript assumes that we have a code block, but why there's an error. --> Makes no sense so replaced "but" with "that's" --- 1-js/05-data-types/10-destructuring-assignment/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/10-destructuring-assignment/article.md b/1-js/05-data-types/10-destructuring-assignment/article.md index 2f9633e3..dec2535a 100644 --- a/1-js/05-data-types/10-destructuring-assignment/article.md +++ b/1-js/05-data-types/10-destructuring-assignment/article.md @@ -356,7 +356,7 @@ The problem is that JavaScript treats `{...}` in the main code flow (not inside } ``` -So here JavaScript assumes that we have a code block, but why there's an error. We have destructuring instead. +So here JavaScript assumes that we have a code block, that's why there's an error. We have destructuring instead. To show JavaScript that it's not a code block, we can wrap the expression in parentheses `(...)`: