Skip to content

Commit 4549891

Browse files
committed
Rename variable in exercise 1.13
1 parent 4ea8b0f commit 4549891

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

src/content/1/en/part1d.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,19 +1393,19 @@ Expand your application so that you can vote for the displayed anecdote.
13931393
You can create a copy of an object like this:
13941394

13951395
```js
1396-
const points = { 0: 1, 1: 3, 2: 4, 3: 2 }
1396+
const votes = { 0: 1, 1: 3, 2: 4, 3: 2 }
13971397

1398-
const copy = { ...points }
1398+
const copy = { ...votes }
13991399
// increment the property 2 value by one
14001400
copy[2] += 1
14011401
```
14021402

14031403
OR a copy of an array like this:
14041404

14051405
```js
1406-
const points = [1, 4, 6, 3]
1406+
const votes = [1, 4, 6, 3]
14071407

1408-
const copy = [...points]
1408+
const copy = [...votes]
14091409
// increment the value in position 2 by one
14101410
copy[2] += 1
14111411
```

src/content/1/es/part1d.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,19 +1377,19 @@ Expande tu aplicación para que puedas votar por la anécdota mostrada.
13771377
Puedes crear una copia de un objeto de esta forma:
13781378

13791379
```js
1380-
const points = { 0: 1, 1: 3, 2: 4, 3: 2 }
1380+
const votes = { 0: 1, 1: 3, 2: 4, 3: 2 }
13811381

1382-
const copy = { ...points }
1382+
const copy = { ...votes }
13831383
// incrementa en uno el valor de la propiedad 2
13841384
copy[2] += 1
13851385
```
13861386

13871387
O una copia de un array de esta forma:
13881388

13891389
```js
1390-
const points = [1, 4, 6, 3]
1390+
const votes = [1, 4, 6, 3]
13911391

1392-
const copy = [...points]
1392+
const copy = [...votes]
13931393
// incrementa en uno el valor de la posición 2
13941394
copy[2] += 1
13951395
```

src/content/1/fi/osa1d.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,19 +1375,19 @@ Laajenna sovellusta siten, että näytettävää anekdoottia on mahdollista ää
13751375
Olio voidaan kopioida esim. seuraavasti
13761376

13771377
```js
1378-
const points = { 0: 1, 1: 3, 2: 4, 3: 2 }
1378+
const votes = { 0: 1, 1: 3, 2: 4, 3: 2 }
13791379

1380-
const copy = { ...points }
1380+
const copy = { ...votes }
13811381
// kasvatetaan olion kentän 2 arvoa yhdellä
13821382
copy[2] += 1
13831383
```
13841384

13851385
ja taulukko esim. seuraavasti:
13861386

13871387
```js
1388-
const points = [1, 4, 6, 3]
1388+
const votes = [1, 4, 6, 3]
13891389

1390-
const copy = [...points]
1390+
const copy = [...votes]
13911391
// kasvatetaan taulukon paikan 2 arvoa yhdellä
13921392
copy[2] += 1
13931393
```

src/content/1/fr/part1d.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,19 +1208,19 @@ Développez votre application afin de pouvoir voter pour l'anecdote affichée.
12081208
Vous pouvez créer une copie d'un objet comme ceci :
12091209

12101210
```js
1211-
const points = { 0: 1, 1: 3, 2: 4, 3: 2 }
1211+
const votes = { 0: 1, 1: 3, 2: 4, 3: 2 }
12121212

1213-
const copy = { ...points }
1213+
const copy = { ...votes }
12141214
// incrémenter la valeur de la propriété 2 de un
12151215
copy[2] += 1
12161216
```
12171217

12181218
OU une copie du tableau comme cela :
12191219

12201220
```js
1221-
const points = [1, 4, 6, 3]
1221+
const votes = [1, 4, 6, 3]
12221222

1223-
const copy = [...points]
1223+
const copy = [...votes]
12241224
// incrémenter la valeur en position 2 de un
12251225
copy[2] += 1
12261226
```

src/content/1/zh/part1d.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,9 +1424,9 @@ export default App
14241424
你可以像这样创建一个对象的副本。
14251425

14261426
```js
1427-
const points = { 0: 1, 1: 3, 2: 4, 3: 2 }
1427+
const votes = { 0: 1, 1: 3, 2: 4, 3: 2 }
14281428

1429-
const copy = { ...points }
1429+
const copy = { ...votes }
14301430
// increment the property 2 value by one
14311431
copy[2] += 1
14321432
```
@@ -1435,9 +1435,9 @@ copy[2] += 1
14351435
或者像这样创建一个数组的副本。
14361436

14371437
```js
1438-
const points = [1, 4, 6, 3]
1438+
const votes = [1, 4, 6, 3]
14391439

1440-
const copy = [...points]
1440+
const copy = [...votes]
14411441
// increment the value in position 2 by one
14421442
copy[2] += 1
14431443
```

0 commit comments

Comments
 (0)