Skip to content

Commit df46a10

Browse files
committed
Add missing decrement
1 parent ca4cfc2 commit df46a10

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)