Skip to content

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

Merged
merged 23 commits into from
Jun 23, 2022
Merged

Loops: while and for #79

merged 23 commits into from
Jun 23, 2022

Conversation

otmon76
Copy link
Contributor

@otmon76 otmon76 commented Apr 18, 2022

No description provided.

@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label Apr 18, 2022
@javascript-translate-bot javascript-translate-bot requested a review from a team April 18, 2022 20:37
@danipoma danipoma changed the title 1.2.13 Loops: while and for May 1, 2022

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!
Copy link
Contributor

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. The postfix form:
1. Postfixová forma:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Postfixová forma:
1. Postfixová notace:


```js
for (let i = 0; i < 5; i++) alert( i );
```
2. The prefix form:
2. Prefixová forma:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Cyklus se musí ptát na číslo tak dlouho, 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Contributor

@danipoma danipoma left a 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.

@javascript-translate-bot javascript-translate-bot removed the review needed Review needed, please approve or request changes label Jun 22, 2022
@javascript-translate-bot

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

@javascript-translate-bot javascript-translate-bot added the changes requested Waiting for changes and /done from PR author label Jun 22, 2022
otmon76 and others added 22 commits June 23, 2022 20:28
@danipoma danipoma merged commit ecced8d into javascript-tutorial:master Jun 23, 2022
@javascript-translate-bot

Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Waiting for changes and /done from PR author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants