Skip to content

Commit f35f5b3

Browse files
committed
Merge pull request #13 from eush77/missing-decrement
Add missing decrement. Causes example to actually break.
2 parents cbd1a16 + df46a10 commit f35f5b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ But inside the loop we can use `break` to quit the loop:
926926
var x = 4;
927927
while (true) {
928928
console.log(x);
929+
x --;
929930
if (x <= 0) break;
930931
}
931932
```

0 commit comments

Comments
 (0)