From b91505aa03f2fad41b10203b95d0dffdcc404559 Mon Sep 17 00:00:00 2001 From: Mikkel Sandberg Date: Mon, 25 Sep 2017 11:58:19 -0700 Subject: [PATCH] 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-js/02-first-steps/12-while-for/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/12-while-for/article.md b/1-js/02-first-steps/12-while-for/article.md index 55ea6302..b043e4a6 100644 --- a/1-js/02-first-steps/12-while-for/article.md +++ b/1-js/02-first-steps/12-while-for/article.md @@ -188,7 +188,7 @@ We can also remove the `step` part: let i = 0; for (; i < 3;) { - alert( i ); + alert( i++ ); } ```