-
-
Notifications
You must be signed in to change notification settings - Fork 3
Loops: while and for #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
The ordinary `break` after `input` would only break the inner loop. That's not sufficient -- labels, come to the rescue! | ||
Pouhé `break` po `vstup` by ukončilo jen vnitřní cyklus. To nám však nestačí. Návěští, pojďte nám na pomoc! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pouhé break
po vstup
by ukončilo jen vnitřní cyklus. To nám však nestačí. V takovém případě použijeme návěští.
1-js/02-first-steps/13-while-for/2-which-value-while/solution.md
Outdated
Show resolved
Hide resolved
1-js/02-first-steps/13-while-for/2-which-value-while/solution.md
Outdated
Show resolved
Hide resolved
1-js/02-first-steps/13-while-for/2-which-value-while/solution.md
Outdated
Show resolved
Hide resolved
|
||
1. The postfix form: | ||
1. Postfixová forma: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Postfixová forma: | |
1. Postfixová notace: |
|
||
```js | ||
for (let i = 0; i < 5; i++) alert( i ); | ||
``` | ||
2. The prefix form: | ||
2. Prefixová forma: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Prefixová forma: | |
2. Prefixová notace: |
|
||
The value returned by the increment is not used here, so there's no difference between `i++` and `++i`. | ||
Hodnota vrácená zvýšením se tady nepoužívá, takže mezi `i++` a `++i` zde není žádný rozdíl. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hodnota vrácená zvýšením se tady nepoužívá, takže mezi `i++` a `++i` zde není žádný rozdíl. | |
Hodnota vrácená zvýšením se tady nepoužívá, takže mezi `i++` a `++i` není žádný rozdíl. |
|
||
The loop must ask for a number until either the visitor enters a number greater than `100` or cancels the input/enters an empty line. | ||
Cyklus se musí ptát na číslo tak dlouho, až návštěvník zadá číslo větší než `100` nebo zruší vstup či zadá prázdný řádek. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cyklus se musí ptát na číslo tak dlouho, až návštěvník zadá číslo větší než `100` nebo zruší vstup či zadá prázdný řádek. | |
Cyklus se musí ptát na číslo tak dlouho, než návštěvník zadá číslo větší než `100` nebo zruší vstup či zadá prázdný řádek. |
|
||
Here we can assume that the visitor only inputs numbers. There's no need to implement a special handling for a non-numeric input in this task. | ||
Zde můžeme předpokládat, že uživatel zadává pouze čísla. V této úloze nemusíte implementovat zvláštní zacházení s nečíselnými vstupy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zde můžeme předpokládat, že uživatel zadává pouze čísla. V této úloze nemusíte implementovat zvláštní zacházení s nečíselnými vstupy. | |
Zde předpokládáme, že uživatel zadává pouze čísla. V této úloze nemusíte implementovat zvláštní zacházení s nečíselnými vstupy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked translation and given some suggestions. Please go through them.
Please make the requested changes. After it, add a comment "/done". |
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Co-authored-by: Daniel Pomajbík <[email protected]>
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |
No description provided.