Skip to content

Commit 8b5693d

Browse files
authored
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 parent 9f010c6 commit 8b5693d

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/10-destructuring-assignment

1 file changed

+1
-1
lines changed

Diff for: 1-js/05-data-types/10-destructuring-assignment/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ The problem is that JavaScript treats `{...}` in the main code flow (not inside
356356
}
357357
```
358358

359-
So here JavaScript assumes that we have a code block, but why there's an error. We have destructuring instead.
359+
So here JavaScript assumes that we have a code block, that's why there's an error. We have destructuring instead.
360360

361361
To show JavaScript that it's not a code block, we can wrap the expression in parentheses `(...)`:
362362

0 commit comments

Comments
 (0)