Skip to content

Commit 527a9d2

Browse files
authored
Merge pull request #350 from randsu/master
Typo: strig => string
2 parents fcbc924 + a89b92b commit 527a9d2

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/12-while-for/6-repeat-until-correct

1 file changed

+1
-1
lines changed

1-js/02-first-steps/12-while-for/6-repeat-until-correct/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ do {
1010
The loop `do..while` repeats while both checks are truthy:
1111

1212
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.
1414

1515
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

Comments
 (0)