fixes
This commit is contained in:
parent
40a4e181be
commit
d9740908bf
4 changed files with 5 additions and 5 deletions
|
@ -47,8 +47,8 @@ while (i) { // when i becomes 0, the condition becomes falsy, and the loop stops
|
|||
}
|
||||
```
|
||||
|
||||
````smart header="Brackets are not required for a single-line body"
|
||||
If the loop body has a single statement, we can omit the brackets `{…}`:
|
||||
````smart header="Curly braces are not required for a single-line body"
|
||||
If the loop body has a single statement, we can omit the curly braces `{…}`:
|
||||
|
||||
```js run
|
||||
let i = 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue