Skip to content

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
Potřebujeme způsob, jak tento proces zastavit, jestliže uživatel zruší vstup.

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í.

Vypíše `alert` v obou cyklech stejné hodnoty, nebo ne?

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:

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:

Zvýšení `i++` je odděleno od testu podmínky (2). Je to jen další příkaz.

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.

Napište cyklus, který se bude ptát na číslo větší než `100`. Pokud návštěvník zadá jiné číslo, zeptejte se ho znovu.

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.

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.

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
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
Co-authored-by: Daniel Pomajbík <60559058+danipoma@users.noreply.github.com>
@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