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:
Mikkel Sandberg 2017-09-25 11:58:19 -07:00 committed by GitHub
parent d39750fc29
commit b91505aa03

View file

@ -188,7 +188,7 @@ We can also remove the `step` part:
let i = 0;
for (; i < 3;) {
alert( i );
alert( i++ );
}
```