-
{person.name}'s Todos
+
+
{osoba.ime} lista
- - Improve the videophone
- - Prepare aeronautics lectures
- - Work on the alcohol-fuelled engine
+ - Unaprediti video-telefon
+ - Pripremiti predavanja iz aeronautike
+ - Raditi na motoru na alkohol
);
@@ -424,24 +424,25 @@ body > div > div { padding: 20px; }
-#### Write an expression inside JSX curly braces {/*write-an-expression-inside-jsx-curly-braces*/}
-In the object below, the full image URL is split into four parts: base URL, `imageId`, `imageSize`, and file extension.
+#### Napišite jednu ekspresiju unutar vitičastih zagrada {/*write-one-expression-inside-curly-braces*/}
+
+U objektu ispod, puni URL slike je podeljen na četiri dela: bazni URL, `imageId`, `imageSize`, i ekstenzija fajla.
-We want the image URL to combine these attributes together: base URL (always `'https://i.imgur.com/'`), `imageId` (`'7vQD0fP'`), `imageSize` (`'s'`), and file extension (always `'.jpg'`). However, something is wrong with how the `
` tag specifies its `src`.
+Mi želimo da URL slike kombinuje ove atribute zajedno: bazni URL (uvek `'https://i.imgur.com/'`), `imageId` (`'7vQD0fP'`), `imageSize` (`'s'`), i ekstenzija fajla (uvek `'.jpg'`). Međutim, nešto nije u redu sa načinom na koji `
` oznaka određuje svoj `src`.
-Can you fix it?
+Možete li da popravite ovo?
```js
const baseUrl = 'https://i.imgur.com/';
-const person = {
- name: 'Gregorio Y. Zara',
+const osoba = {
+ ime: 'Gregorio Y. Zara',
imageId: '7vQD0fP',
imageSize: 's',
- theme: {
+ tema: {
backgroundColor: 'black',
color: 'pink'
}
@@ -449,17 +450,17 @@ const person = {
export default function TodoList() {
return (
-
-
{person.name}'s Todos
+
+
{osoba.ime} lista
- - Improve the videophone
- - Prepare aeronautics lectures
- - Work on the alcohol-fuelled engine
+ - Unaprediti video-telefon
+ - Pripremiti predavanja iz aeronautike
+ - Raditi na motoru na alkohol
);
@@ -474,25 +475,25 @@ body > div > div { padding: 20px; }
-To check that your fix worked, try changing the value of `imageSize` to `'b'`. The image should resize after your edit.
+Da proverite da li je vaša popravka uspela, pokušajte da promenite vrednost `imageSize` u `'b'`. Slika bi trebalo da se promeni nakon vaše izmene.
-You can write it as `src={baseUrl + person.imageId + person.imageSize + '.jpg'}`.
+Možete napisati kao `src={baseUrl + osoba.imageId + osoba.imageSize + '.jpg'}`:
-1. `{` opens the JavaScript expression
-2. `baseUrl + person.imageId + person.imageSize + '.jpg'` produces the correct URL string
-3. `}` closes the JavaScript expression
+1. `{` otvara JavaScript ekspresiju
+2. `baseUrl + person.imageId + person.imageSize + '.jpg'` proizvodi ispravan URL string
+3. `}` zatvara JavaScript ekspresiju
```js
const baseUrl = 'https://i.imgur.com/';
-const person = {
- name: 'Gregorio Y. Zara',
+const osoba = {
+ ime: 'Gregorio Y. Zara',
imageId: '7vQD0fP',
imageSize: 's',
- theme: {
+ tema: {
backgroundColor: 'black',
color: 'pink'
}
@@ -500,17 +501,17 @@ const person = {
export default function TodoList() {
return (
-
-
{person.name}'s Todos
+
+
{osoba.ime} lista
- - Improve the videophone
- - Prepare aeronautics lectures
- - Work on the alcohol-fuelled engine
+ - Unaprediti video-telefon
+ - Pripremiti predavanja iz aeronautike
+ - Raditi na motoru na alkohol
);
@@ -525,18 +526,18 @@ body > div > div { padding: 20px; }
-You can also move this expression into a separate function like `getImageUrl` below:
+Možete pomeriti i ekspresiju u zasebnu funkciju kao što je `getImageUrl` ispod:
```js App.js
import { getImageUrl } from './utils.js'
-const person = {
- name: 'Gregorio Y. Zara',
+const osoba = {
+ ime: 'Gregorio Y. Zara',
imageId: '7vQD0fP',
imageSize: 's',
- theme: {
+ tema: {
backgroundColor: 'black',
color: 'pink'
}
@@ -544,17 +545,17 @@ const person = {
export default function TodoList() {
return (
-
-
{person.name}'s Todos
+
+
{osoba.ime} lista
- - Improve the videophone
- - Prepare aeronautics lectures
- - Work on the alcohol-fuelled engine
+ - Unaprediti video-telefon
+ - Pripremiti predavanja iz aeronautike
+ - Raditi na motoru na alkohol
);
@@ -562,11 +563,11 @@ export default function TodoList() {
```
```js utils.js
-export function getImageUrl(person) {
+export function getImageUrl(osoba) {
return (
'https://i.imgur.com/' +
- person.imageId +
- person.imageSize +
+ osoba.imageId +
+ osoba.imageSize +
'.jpg'
);
}
@@ -580,7 +581,7 @@ body > div > div { padding: 20px; }
-Variables and functions can help you keep the markup simple!
+Promenljive i funkcije vam mogu pomoći da održite markup jednostavnim!