This commit is contained in:
Ilya Kantor 2019-05-16 13:37:21 +03:00
parent 40a4e181be
commit d9740908bf
4 changed files with 5 additions and 5 deletions

View file

@ -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;