Skip to content

Commit 745ab46

Browse files
author
Veljko Pejović
authored
Update solution.md
1 parent 2eb77f2 commit 745ab46

File tree

1 file changed

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

1 file changed

+9
-9
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
## The variable for our planet
1+
## Varijabla za našu planetu
22

3-
That's simple:
3+
To je jednostavno:
44

55
```js
6-
let ourPlanetName = "Earth";
6+
let imeNašePlanete = "Zemlja";
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+
Imajte na umu da bismo mogli koristiti kraći naziv `planeta`, ali možda nije očigledno na koju se planetu odnosi. Lijepo je biti višestruk. Barem dok varijabla nijeNeeeeštoDuuuuuuuža od ovoga.
1010

11-
## The name of the current visitor
11+
## Ime trenutnog korisnika
1212

1313
```js
14-
let currentUserName = "John";
14+
let imeTrenutnogKorisnika = "Veljko";
1515
```
1616

17-
Again, we could shorten that to `userName` if we know for sure that the user is current.
17+
Ponovo bismo to mogli skratiti na `imeKorisnika` ako znamo da je korisnik aktuelan.
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+
Moderni urednici i automatsko dovršavanje olakšavaju pisanje dugačkih imena varijabli. Ne štedite na njima. Ime sa tri riječi je sasvim OK.
2020

21-
And if your editor does not have proper autocompletion, get [a new one](/code-editors).
21+
A ako vaš urednik nema pravilno dovršavanje, nabavite [novi](/code-editors).

0 commit comments

Comments
 (0)