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"
This commit is contained in:
Simon Holdorf 2019-08-28 21:54:27 +02:00 committed by GitHub
parent 9f010c6c5e
commit 8b5693dbfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 `(...)`: