Skip to content

Commit b91505a

Browse files
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.
1 parent d39750f commit b91505a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/02-first-steps/12-while-for/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ We can also remove the `step` part:
188188
let i = 0;
189189

190190
for (; i < 3;) {
191-
alert( i );
191+
alert( i++ );
192192
}
193193
```
194194

0 commit comments

Comments
 (0)