1 > 02 > 12 > skipping parts (infinite loop)
There's an infinite loop on the second omit example, because i is never iterated. If you iterate inside the alert call, then that should fix it.
This commit is contained in:
parent
d39750fc29
commit
b91505aa03
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ We can also remove the `step` part:
|
||||||
let i = 0;
|
let i = 0;
|
||||||
|
|
||||||
for (; i < 3;) {
|
for (; i < 3;) {
|
||||||
alert( i );
|
alert( i++ );
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue