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
{{ message }}
Repository navigation
Commit 527a9d2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/12-while-for/6-repeat-until-correct/solution.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
@@ -10,6 +10,6 @@ do {
10
10
The loop `do..while` repeats while both checks are truthy:
11
11
12
12
1. The check for `num <= 100` -- that is, the entered value is still not greater than `100`.
13
-
2. The check `&& num` is false when `num` is `null` or a empty strig. Then the `while` loop stops too.
13
+
2. The check `&& num` is false when `num` is `null` or a empty string. Then the `while` loop stops too.
14
14
15
15
P.S. If `num` is `null` then `num <= 100` is `true`, so without the 2nd check the loop wouldn't stop if the user clicks CANCEL. Both checks are required.
0 commit comments