Skip to content

Commit 862874d

Browse files
authored
Translated solution.md
1 parent 285611d commit 862874d

File tree

1 file changed

+8
-8
lines changed
  • 1-js/02-first-steps/04-variables/2-declare-variables

1 file changed

+8
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
## The variable for our planet
1+
## Kintamasis mūsų planetai
22

3-
That's simple:
3+
Tai labai paprasta:
44

55
```js
6-
let ourPlanetName = "Earth";
6+
let ourPlanetName = "Žemė";
77
```
88

9-
Note, we could use a shorter name `planet`, but it might be not obvious what planet it refers to. It's nice to be more verbose. At least until the variable isNotTooLong.
9+
Atkreipkite dėmesį, kad galėjome naudoti trumpesnį pavadinimą `planet`, bet tada nebūtų aišku apie kurią planetą eina kalba. Šiuo atveju nieko tokio daugiažoždiauti. Bent jau kol kintamasis nėraPerIlgas.
1010

11-
## The name of the current visitor
11+
## Esamo lankytojo vardas
1212

1313
```js
1414
let currentUserName = "John";
1515
```
1616

17-
Again, we could shorten that to `userName` if we know for sure that the user is current.
17+
Vėlgi, galėjome sutrumpinti iki `userName`, jeigu konkrečiai žinome, kad tas lankytojas yra esamas.
1818

19-
Modern editors and autocomplete make long variable names easy to write. Don't save on them. A name with 3 words in it is fine.
19+
Modernūs redaktoriai ir automatinis užbaigimas padeda rašyti ilgus kintamųjų pavadinimus. Netaupykite dėl jų. Pavadinimas su trimis žodžiais yra visiškai tinkamas variantas.
2020

21-
And if your editor does not have proper autocompletion, get [a new one](/code-editors).
21+
O jeigu jūsų redaktorius neturi tinkamo automatinio užbaigimo funkcijos, įsigykite [naują](/code-editors).

0 commit comments

Comments
 (0)