commit
7edd7c320f
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ Let's examine the `for` statement part-by-part:
|
||||||
|
|
||||||
| part | | |
|
| part | | |
|
||||||
|-------|----------|----------------------------------------------------------------------------|
|
|-------|----------|----------------------------------------------------------------------------|
|
||||||
| begin | `i = 0` | Executes once upon entering the loop. |
|
| begin | `let i = 0` | Executes once upon entering the loop. |
|
||||||
| condition | `i < 3`| Checked before every loop iteration. If false, the loop stops. |
|
| condition | `i < 3`| Checked before every loop iteration. If false, the loop stops. |
|
||||||
| body | `alert(i)`| Runs again and again while the condition is truthy. |
|
| body | `alert(i)`| Runs again and again while the condition is truthy. |
|
||||||
| step| `i++` | Executes after the body on each iteration. |
|
| step| `i++` | Executes after the body on each iteration. |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue