Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3
Variables#71
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
Variables#71
Changes fromall commits
Commits
Show all changes
19 commits Select commitHold shift + click to select a range
252ff35 1.2.4
otmon76a40a638 Update 1-js/02-first-steps/04-variables/1-hello-variables/solution.md
otmon76c9559f5 Update 1-js/02-first-steps/04-variables/article.md
otmon76d7ac7b7 Update 1-js/02-first-steps/04-variables/article.md
otmon763313951 Update 1-js/02-first-steps/04-variables/article.md
otmon763b60317 Update 1-js/02-first-steps/04-variables/article.md
otmon760920762 Update 1-js/02-first-steps/04-variables/article.md
otmon760366c03 Update 1-js/02-first-steps/04-variables/article.md
otmon767b74e6a Update 1-js/02-first-steps/04-variables/article.md
otmon76382245b Update 1-js/02-first-steps/04-variables/article.md
otmon76e9f6c7b Update 1-js/02-first-steps/04-variables/article.md
otmon76bbf06a0 Update 1-js/02-first-steps/04-variables/article.md
otmon766342ef5 Update 1-js/02-first-steps/04-variables/article.md
otmon7632ae0eb Update 1-js/02-first-steps/04-variables/article.md
otmon760c82c47 Update 1-js/02-first-steps/04-variables/article.md
otmon760fa31db Update 1-js/02-first-steps/04-variables/article.md
otmon76830a94f Update 1-js/02-first-steps/04-variables/article.md
danipomaa95c871 Update 1-js/02-first-steps/04-variables/article.md
danipomaf050a8c Update 1-js/02-first-steps/04-variables/article.md
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
10 changes: 5 additions & 5 deletions1-js/02-first-steps/04-variables/1-hello-variables/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,12 +1,12 @@ | ||
| V níže uvedeném kódu každý řádek odpovídá jednomu bodu v zadání. | ||
| ```js run | ||
| letsprávce, jméno; //můžeme deklarovat dvě proměnné najednou | ||
| jméno = "Jan"; | ||
| správce =jméno; | ||
| alert(správce ); // "Jan" | ||
| ``` | ||
10 changes: 5 additions & 5 deletions1-js/02-first-steps/04-variables/1-hello-variables/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
18 changes: 9 additions & 9 deletions1-js/02-first-steps/04-variables/2-declare-variables/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 @@ | ||
| ##Proměnná pro naši planetu | ||
| To je jednoduché: | ||
| ```js | ||
| letjménoNašíPlanety = "Země"; | ||
| ``` | ||
| Všimněte si, že bychom mohli použít kratší název `planeta`,ale pak by nemuselo být zřejmé, na kterou planetu se odkazuje. Je vhodné být výřečnější, aspoň dokud název proměnné neníPřílišDlouhý. | ||
| ##Jméno aktuálního návštěvníka | ||
| ```js | ||
| letjménoAktuálníhoUživatele = "Jan"; | ||
| ``` | ||
| Opět bychom to mohli zkrátit na `jménoUživatele`, pokud máme jistotu, že jde o aktuálního uživatele. | ||
| V moderních editorech se dlouhé názvy proměnných snadno píší díky funkci automatického doplňování. Nešetřete na nich. Tříslovný název je zcela v pořádku. | ||
| A pokud váš editorneumí automatické doplňování, pořiďte si [nový](/code-editors). |
6 changes: 3 additions & 3 deletions1-js/02-first-steps/04-variables/2-declare-variables/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/04-variables/3-uppercast-constant/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,5 +1,5 @@ | ||
| Obecně používáme velká písmena pro konstanty, které jsou „zakódovány natvrdo“. Jinými slovy, když je jejich hodnota známa ještě před spuštěním programu a je přímo uvedena v kódu. | ||
| V tomto kódu je to přesně případ proměnné `datumNarození`. Pro ni bychom tedy mohli použít velká písmena. | ||
| Naproti tomu `věk` se počítá až při běhu programu. Dnes máme jeden věk, za rok budeme mít jiný. Je to konstanta v tom smyslu, že se její hodnota nezmění při provádění kódu, ale je „trochu méně konstantní“ než `datumNarození`:její hodnota je vypočítávána, takže pro ni bychom měli nechat malá písmena. |
16 changes: 8 additions & 8 deletions1-js/02-first-steps/04-variables/3-uppercast-constant/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.