fixes
This commit is contained in:
parent
c9401b3104
commit
0fcf9f84fa
58 changed files with 673 additions and 643 deletions
|
@ -8,7 +8,7 @@ for (let i = 0; i < 5; i++) alert( i );
|
|||
|
||||
That can be easily deducted from the algorithm of `for`:
|
||||
|
||||
1. Execute once `i=0` before everything.
|
||||
1. Execute once `i=0` before everything (begin).
|
||||
2. Check the condition `i<5`
|
||||
3. If `true` -- execute the loop body `alert(i)`, and then `i++`
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@ importance: 4
|
|||
|
||||
# Which values get shown by the "for" loop?
|
||||
|
||||
For each loop scribe down which values it is going to show.
|
||||
For each loop write down which values it is going to show. Then compare with the answer.
|
||||
|
||||
Then compare with the answer.
|
||||
Both loops `alert` same values or not?
|
||||
|
||||
1. The postfix form:
|
||||
|
||||
|
@ -18,4 +18,3 @@ Then compare with the answer.
|
|||
```js
|
||||
for (let i = 0; i < 5; ++i) alert( i );
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue