Skip to content

Commit e7e0676

Browse files
author
Veljko Pejović
authored
Update article.md
1 parent f519818 commit e7e0676

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1-
# Developer console
1+
# Konzola za programere
22

3-
Code is prone to errors. You will quite likely make errors... Oh, what am I talking about? You are *absolutely* going to make errors, at least if you're a human, not a [robot](https://en.wikipedia.org/wiki/Bender_(Futurama)).
3+
Kod je sklon greškama. Verovatno ćete pogrešiti ... Oh, o čemu govorim? * Apsolutno ćete grešiti, barem ako ste čovek, a ne čovek [robot](https://en.wikipedia.org/wiki/Bender_(Futurama)).
44

5-
But in the browser, users don't see errors by default. So, if something goes wrong in the script, we won't see what's broken and can't fix it.
5+
Ali u pretraživaču korisnici ne vide greške prema zadanim postavkama. Dakle, ako nešto pođe po zlu u scenariju, nećemo videti šta je slomljeno i ne možemo to da popravimo.
66

7-
To see errors and get a lot of other useful information about scripts, "developer tools" have been embedded in browsers.
7+
Da biste videli greške i dobili puno drugih korisnih informacija o skriptama, „alati za programere“ ugrađeni su u pregledače.
88

9-
Most developers lean towards Chrome or Firefox for development because those browsers have the best developer tools. Other browsers also provide developer tools, sometimes with special features, but are usually playing "catch-up" to Chrome or Firefox. So most developers have a "favorite" browser and switch to others if a problem is browser-specific.
9+
Većina programera za razvoj se naginje na Chrome ili Firefox jer ti pregledači imaju najbolje alate za programere. Ostali pregledači takođe nude alate za programere, ponekad i posebne funkcije, ali obično se igraju „nadoknadu“ za Chrome ili Firefok. Tako većina programera ima "omiljeni" pregledač i prelaze na druge ako je problem specifičan za pretraživač.
1010

11-
Developer tools are potent; they have many features. To start, we'll learn how to open them, look at errors, and run JavaScript commands.
11+
Alati za programere su snažni; imaju mnogo funkcija. Za početak ćemo naučiti kako da ih otvorimo, pogledati greške i pokrenuti JavaScript komande.
1212

13-
## Google Chrome
13+
## Gugl Chrome
1414

15-
Open the page [bug.html](bug.html).
15+
Otvorite stranicu [bug.html](bug.html).
1616

17-
There's an error in the JavaScript code on it. It's hidden from a regular visitor's eyes, so let's open developer tools to see it.
17+
Postoji greška u JavaScript kodu. Sakriven je od očiju redovnog posetioca, pa otvorimo programe za razvojne programere da bismo ih videli.
1818

19-
Press `key:F12` or, if you're on Mac, then `key:Cmd+Opt+J`.
19+
Pretisni `taster:F12` ili, ako si na Mac računaru, onda `taster:Cmd+Opt+J`.
2020

21-
The developer tools will open on the Console tab by default.
21+
Alatke za programere će se podrazumevano otvoriti na kartici konzola.
2222

23-
It looks somewhat like this:
23+
Izgleda nekako ovako:
2424

2525
![chrome](chrome.png)
2626

27-
The exact look of developer tools depends on your version of Chrome. It changes from time to time but should be similar.
27+
Tačan izgled alata za programere zavisi od verzije Chrome-a. Povremeno se menja, ali bi trebalo da bude slično.
2828

29-
- Here we can see the red-colored error message. In this case, the script contains an unknown "lalala" command.
30-
- On the right, there is a clickable link to the source `bug.html:12` with the line number where the error has occurred.
29+
- Ovde možemo videti poruku o grešci u crvenoj boji. U ovom slučaju, skripta sadrži nepoznatu komandu "lalala".
30+
- Sa desne strane postoji veza na koju se može kliknuti na izvor `bug.html: 12` sa brojem linije na kojoj je došlo do greške.
3131

32-
Below the error message, there is a blue `>` symbol. It marks a "command line" where we can type JavaScript commands. Press `key:Enter` to run them (`key:Shift+Enter` to input multi-line commands).
32+
Ispod poruke o grešci nalazi se plavi simbol ">". Označava „komandnu liniju“ u koju možemo otkucati JavaScript komande. Pretisni `taster:Enter` da ih pokreneš (`taster:Shift+Enter` za unos višerednih komandi).
3333

34-
Now we can see errors, and that's enough for a start. We'll come back to developer tools later and cover debugging more in-depth in the chapter <info:debugging-chrome>.
34+
Sada možemo videti greške, a to je dovoljno za početak. Kasnije ćemo se vratiti alatima za razvojne programere i detaljnije ćemo pokloniti pogrešku u ovom poglavlju <info:debugging-chrome>.
3535

3636

37-
## Firefox, Edge, and others
37+
## Firefox, Edge, i ostali
3838

39-
Most other browsers use `key:F12` to open developer tools.
39+
Većina pretraživača koristi `taster:F12` za otvaranje alata za programere.
4040

41-
The look & feel of them is quite similar. Once you know how to use one of these tools (you can start with Chrome), you can easily switch to another.
41+
Izgled i osećaj kod njih prilično su slični. Kada znate kako da koristite jedan od ovih alata (možete početi sa Chrome-om), lako možete preći na drugi.
4242

4343
## Safari
4444

45-
Safari (Mac browser, not supported by Windows/Linux) is a little bit special here. We need to enable the "Develop menu" first.
45+
Safari (Mac pretraživač, nije podžan od strane Windows/Linux) je malo poseban ovde. Prvo moramo da omogućimo „Developer meni“.
4646

47-
Open Preferences and go to the "Advanced" pane. There's a checkbox at the bottom:
47+
Otvorite Postavke i idite na okno „Napredno“. Na dnu je potvrdni okvir:
4848

4949
![safari](safari.png)
5050

51-
Now `key:Cmd+Opt+C` can toggle the console. Also, note that the new top menu item named "Develop" has appeared. It has many commands and options.
51+
Sada `taster:Cmd+Opt+C` može prebaciti konzolu. Takođe, imajte na umu da se pojavila nova stavka gornjeg menija pod nazivom „Develop“. Ima mnogo komandi i opcija.
5252

53-
```smart header="Multi-line input"
54-
Usually, when we put a line of code into the console, and then press `key:Enter`, it executes.
53+
```smart header="Više-linijski ulaz"
54+
Obično kada stavimo liniju koda u konzolu, a zatim pritisnemo `taster: Enter`, izvršava se.
5555
56-
To insert multiple lines, press `key:Shift+Enter`. This way one can enter long fragments of JavaScript code.
56+
Da biste umetnuli više linija, pritisnite `taster:Shift+Enter`. Na ovaj način se mogu uneti dugi fragmenti JavaScript koda.
5757
```
5858

59-
## Summary
59+
## Rezime
6060

61-
- Developer tools allow us to see errors, run commands, examine variables, and much more.
62-
- They can be opened with `key:F12` for most browsers on Windows. Chrome for Mac needs `key:Cmd+Opt+J`, Safari: `key:Cmd+Opt+C` (need to enable first).
61+
- Alatke za programere omogućavaju nam da vidimo greške, izvršavamo komande, ispitujemo promenljive i još mnogo toga.
62+
- Mogu se otvoriti sa `taster:F12` za većinu pregledača u operativnom sistemu Windows. Chrome za Mac treba `taster:Cmd+Opt+J`, Safari: `taster:Cmd+Opt+C` (prvo treba da se omogući).
6363

64-
Now we have the environment ready. In the next section, we'll get down to JavaScript.
64+
Sad je spremno okruženje. U sledećem odeljku preći ćemo na JavaScript.

0 commit comments

Comments
 (0)