Add nullish coalescing to multiple articles, refactor operators, renumber the chapter
This commit is contained in:
parent
175aefa0b8
commit
8a13c992d6
54 changed files with 386 additions and 183 deletions
|
@ -0,0 +1,10 @@
|
|||
|
||||
|
||||
```js run
|
||||
let i = 0;
|
||||
while (i < 3) {
|
||||
alert( `number ${i}!` );
|
||||
i++;
|
||||
}
|
||||
```
|
||||
|
14
1-js/02-first-steps/13-while-for/5-replace-for-while/task.md
Normal file
14
1-js/02-first-steps/13-while-for/5-replace-for-while/task.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
importance: 5
|
||||
|
||||
---
|
||||
|
||||
# Replace "for" with "while"
|
||||
|
||||
Rewrite the code changing the `for` loop to `while` without altering its behavior (the output should stay same).
|
||||
|
||||
```js run
|
||||
for (let i = 0; i < 3; i++) {
|
||||
alert( `number ${i}!` );
|
||||
}
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue