Loops: while and for#79
Merged
danipoma merged 23 commits intojavascript-tutorial:masterfrom Jun 23, 2022
Merged
Conversation
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 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! |
Contributor
There was a problem hiding this comment.
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í.
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
1-js/02-first-steps/13-while-for/2-which-value-while/solution.md
Outdated
Show resolved
Hide resolved
danipoma
reviewed
Jun 22, 2022
1-js/02-first-steps/13-while-for/2-which-value-while/solution.md
Outdated
Show resolved
Hide resolved
danipoma
reviewed
Jun 22, 2022
1-js/02-first-steps/13-while-for/2-which-value-while/solution.md
Outdated
Show resolved
Hide resolved
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
danipoma
reviewed
Jun 22, 2022
| Vypíše `alert` v obou cyklech stejné hodnoty, nebo ne? | ||
|
|
||
| 1. The postfix form: | ||
| 1. Postfixová forma: |
Contributor
There was a problem hiding this comment.
Suggested change
| 1. Postfixová forma: | |
| 1. Postfixová notace: |
danipoma
reviewed
Jun 22, 2022
| for (let i = 0; i < 5; i++) alert( i ); | ||
| ``` | ||
| 2. The prefix form: | ||
| 2. Prefixová forma: |
Contributor
There was a problem hiding this comment.
Suggested change
| 2. Prefixová forma: | |
| 2. Prefixová notace: |
danipoma
reviewed
Jun 22, 2022
| 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. |
Contributor
There was a problem hiding this comment.
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. |
danipoma
reviewed
Jun 22, 2022
| 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. |
Contributor
There was a problem hiding this comment.
Suggested change
| 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. |
danipoma
reviewed
Jun 22, 2022
| 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. |
Contributor
There was a problem hiding this comment.
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. |
danipoma
requested changes
Jun 22, 2022
Contributor
danipoma
left a comment
There was a problem hiding this comment.
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 <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>
|
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.