Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 1-js/05-data-types/10-destructuring-assignment/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `(...)`:

Expand Down