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:
parent
9f010c6c5e
commit
8b5693dbfe
1 changed files with 1 additions and 1 deletions
|
@ -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 `(...)`:
|
To show JavaScript that it's not a code block, we can wrap the expression in parentheses `(...)`:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue