Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3
Functions#81
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Functions#81
Changes fromall commits
Commits
Show all changes
52 commits Select commitHold shift + click to select a range
60715e9
1.2.15
otmon764efc42b
Update solution.md
otmon76c38fee4
Update article.md
otmon76ea843c2
Update 1-js/02-first-steps/15-function-basics/article.md
otmon7637926e7
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76c088893
Update 1-js/02-first-steps/15-function-basics/article.md
otmon7625633ea
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76deec629
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76e83cba3
Update 1-js/02-first-steps/15-function-basics/article.md
otmon762d86dc3
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76a7cf5df
Update 1-js/02-first-steps/15-function-basics/article.md
otmon7696e0a34
Update 1-js/02-first-steps/15-function-basics/article.md
otmon766284a04
Update 1-js/02-first-steps/15-function-basics/article.md
otmon766c25b52
Update 1-js/02-first-steps/15-function-basics/article.md
otmon769dbcf54
Update 1-js/02-first-steps/15-function-basics/article.md
otmon760dd5146
Update 1-js/02-first-steps/15-function-basics/article.md
otmon767e4f888
Update 1-js/02-first-steps/15-function-basics/article.md
otmon7652ed0ba
Update 1-js/02-first-steps/15-function-basics/article.md
otmon767c46b14
Update 1-js/02-first-steps/15-function-basics/article.md
otmon769f9e845
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76819ddbb
Update 1-js/02-first-steps/15-function-basics/article.md
otmon760995d74
Update 1-js/02-first-steps/15-function-basics/article.md
otmon760527b60
Update 1-js/02-first-steps/15-function-basics/article.md
otmon7699f8794
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76a1313db
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76405a4b7
Update 1-js/02-first-steps/15-function-basics/article.md
otmon769e5a4ea
Update 1-js/02-first-steps/15-function-basics/article.md
otmon768999849
Update 1-js/02-first-steps/15-function-basics/2-rewrite-function-ques…
otmon76f918572
Update 1-js/02-first-steps/15-function-basics/3-min/task.md
otmon76223451a
Update 1-js/02-first-steps/15-function-basics/article.md
otmon769581c5a
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76e433ba2
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76491729c
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76007d3c4
Update 1-js/02-first-steps/15-function-basics/article.md
otmon763e2d6ce
Update 1-js/02-first-steps/15-function-basics/article.md
otmon764f2806c
Update 1-js/02-first-steps/15-function-basics/article.md
otmon769287618
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76393a83f
Update 1-js/02-first-steps/15-function-basics/article.md
otmon768d1af04
Update 1-js/02-first-steps/15-function-basics/article.md
otmon767dfa61f
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76b37f9d3
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76655e1fd
Update 1-js/02-first-steps/15-function-basics/article.md
otmon7634f7134
Update 1-js/02-first-steps/15-function-basics/article.md
otmon764e26f73
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76e2cd6ba
Update 1-js/02-first-steps/15-function-basics/article.md
otmon764f9e628
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76818abcf
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76493f8ed
Update 1-js/02-first-steps/15-function-basics/article.md
otmon76fc3cfbe
Update 1-js/02-first-steps/15-function-basics/1-if-else-required/task.md
otmon76a040390
Update 1-js/02-first-steps/15-function-basics/1-if-else-required/solu…
otmon76a47afda
Update 1-js/02-first-steps/15-function-basics/2-rewrite-function-ques…
otmon76f89a3fc
Merge branch 'master' into 1.2.15
danipomaFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions1-js/02-first-steps/15-function-basics/1-if-else-required/solution.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,3 +1,3 @@ | ||
Žádný rozdíl v nich není. | ||
V obou případech se příkaz`return confirm('Dovolili ti to rodiče?');` spustí právě tehdy, když podmínka za`if`není splněna. |
22 changes: 11 additions & 11 deletions1-js/02-first-steps/15-function-basics/1-if-else-required/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
14 changes: 7 additions & 7 deletions1-js/02-first-steps/15-function-basics/2-rewrite-function-question-or/solution.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,17 +1,17 @@ | ||
Pomocí operátoru otazníku `'?'`: | ||
```js | ||
functionověřVěk(věk) { | ||
return (věk > 18) ? true : confirm('Dovolili ti to rodiče?'); | ||
} | ||
``` | ||
Pomocí OR `||` (kratší varianta): | ||
```js | ||
functionověřVěk(věk) { | ||
return (věk > 18) || confirm('Dovolili ti to rodiče?'); | ||
} | ||
``` | ||
Závorky okolo `věk > 18`zde nejsou nutné. Slouží jen k lepší čitelnosti. |
21 changes: 11 additions & 10 deletions1-js/02-first-steps/15-function-basics/2-rewrite-function-question-or/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
6 changes: 3 additions & 3 deletions1-js/02-first-steps/15-function-basics/3-min/solution.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
6 changes: 3 additions & 3 deletions1-js/02-first-steps/15-function-basics/3-min/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
12 changes: 6 additions & 6 deletions1-js/02-first-steps/15-function-basics/4-pow/solution.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,21 +1,21 @@ | ||
```js run demo | ||
functionmocnina(x, n) { | ||
letvýsledek = x; | ||
for (let i = 1; i < n; i++) { | ||
výsledek *= x; | ||
} | ||
returnvýsledek; | ||
} | ||
let x = prompt("x?", ''); | ||
let n = prompt("n?", ''); | ||
if (n < 1) { | ||
alert(`${n}-tá mocnina není podporována, zadejte kladné celé číslo`); | ||
} else { | ||
alert(mocnina(x, n) ); | ||
} | ||
``` |
14 changes: 7 additions & 7 deletions1-js/02-first-steps/15-function-basics/4-pow/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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.