-
Notifications
You must be signed in to change notification settings - Fork 28
Loops: while and for #75
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
Open
Moviss
wants to merge
11
commits into
javascript-tutorial:master
Choose a base branch
from
Moviss:while_and_for
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
04ea0ba
Translate to for loop
Moviss 1adcfac
Finished to using quotation mark
Moviss b6729e7
Finished whole document
Moviss aa4c2fe
Translate task 1
Moviss 13c4805
Translate task 2
Moviss b04d24e
Translate task 3
Moviss 039f50e
Translate task 4
Moviss f8e70d6
Translate task 5
Moviss 3139b59
Translate task 6
Moviss 0614e86
Translate task 7
Moviss 0b880d0
Fixes after comment
Moviss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Translate task 6
- Loading branch information
commit 3139b59ac6cb3b79ad9f3a10e4674b0dbb49bc7c
There are no files selected for viewing
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
10 changes: 5 additions & 5 deletions
10
1-js/02-first-steps/18-while-for/6-repeat-until-correct/task.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
importance: 5 | ||
ważność: 5 | ||
|
||
--- | ||
|
||
# Repeat until the input is correct | ||
# Powtarzaj do momentu, aż wejście będzie prawidłowe | ||
|
||
Write a loop which prompts for a number greater than `100`. If the visitor enters another number -- ask them to input again. | ||
Napisz pętlę, która pyta o liczbę większą niż `100`. Jeśli odwiedzający wprowadzi inną liczbę - poproś go o jej ponowne wprowadzenie. | ||
|
||
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. | ||
Pętla musi pytać o liczbę, dopóki użytkownik nie wprowadzi liczby większej niż `100` lub nie anuluje wejścia/wprowadzi pustą linię. | ||
|
||
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. | ||
Tutaj możemy założyć, że odwiedzający wprowadza tylko numery. Nie ma potrzeby implementowania specjalnej obsługi dla nie-numerycznych danych wejściowych w tym zadaniu. | ||
|
||
[demo] |
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.
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.
Please do not translate YAML metadata