- Notifications
You must be signed in to change notification settings - Fork179
Variables#14
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#14
Changes fromall commits
Commits
Show all changes
5 commits Select commitHold shift + click to select a range
c07cc45
started translation of 'Variables' article
tarasyyyk4aa68fb
Merge branch 'master' of github.com:javascript-tutorial/uk.javascript…
tarasyyyke5243dd
translate Variables, add info to README
tarasyyyk5a6971f
translated Constants
tarasyyyk1678007
translation of Variables
tarasyyykFile 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
2 changes: 1 addition & 1 deletion1-js/01-getting-started/index.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 @@ | ||
# Введення | ||
Про мову JavaScript і робоче середовище для розробки. |
8 changes: 4 additions & 4 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 @@ | ||
В коді нижче, кожен рядок рішення відповідає одному елементу в списку задачі. | ||
```js run | ||
let admin, name; //можна оголошувати дві змінні через кому | ||
name = "Іван"; | ||
admin = name; | ||
alert( admin ); // "Іван" | ||
``` | ||
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 @@ | ||
1. Змінна для назви нашої планети. | ||
Ось приклад: | ||
```js | ||
let ourPlanetName = "Земля"; | ||
``` | ||
Зверніть увагу, ми могли використати коротше ім'я`planet`,але тоді буде не зрозуміло, яку планету ми маємо на увазі. Краще описати вміст змінної детальніше. Принаймні до тих пір, поки ім'я змінної неСтанеЗанадтоДовгим. | ||
2. Ім'я поточного відвідувача: | ||
```js | ||
let currentUserName = "Іван"; | ||
``` | ||
Знову ж таки, ми можемо скоротити ім'я до `userName`, якщо ми точно знатимемо що це поточний відвідувач. | ||
Сучасні редактори і автодоповнювачі дозволяють легко писати довгі імена змінних. Не економте букв. Імена з трьох слів цілком нормальні. | ||
Якщо в вашому редакторі немає автодоповнювача, скористайтеся [іншим](/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 @@ | ||
Зазвичай, ми використовуємо великі букви для констант, які "жорстко закодовані" (hardcoded). Іншими словами, коли значення константи відоме до початку виконання скрипта і записується безпосередньо в код. | ||
В нашому випадку, `birthday`саме така змінна. Тому для неї ми можемо використати великі букви. | ||
На відмінну від попередньої, константа`age`обчислюється під час виконання скрипта. Сьогодні в нас один вік, а через рік вже зовсім інший. Вона є константою, тому що не змінюється під час виконання коду. Але вона "трохи менша" константа, ніж`birthday`,вона обчислюється, тому ми повинні зберегти її в нижньому регістрі. |
12 changes: 6 additions & 6 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.