You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/12-while-for/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ A single execution of the loop body is called *an iteration*. The loop in the ex
35
35
36
36
If there were no `i++` in the example above, the loop would repeat (in theory) forever. In practice, the browser provides ways to stop such loops, and for server-side JavaScript we can kill the process.
37
37
38
-
Any expression or a variable can be a loop condition, not just a comparison. They are evaluated and converted to boolean by `while`.
38
+
Any expression or a variable can be a loop condition, not just a comparison. They are evaluated and converted to a boolean by `while`.
39
39
40
40
For instance, the shorter way to write `while (i != 0)` could be `while (i)`:
0 commit comments