Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Each item in an array is identified by a number, starting at `0`.
So in this array `hi` is identified by the number `1`:

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

It can be accessed like this:
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Los índices comienzan desde el cero.
Entonces en este array, el elemento `hi` es identificado por el número `1`:

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```
Puede ser accedido de la siguiente forma:

Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Chaque élément du tableau est identifié par un nombre, commençant à `0`.
Donc dans ce tableau, `hi` est identifié par le nombre `1` :

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

On peut y accéder comme ceci :
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_it.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Ciascun elemento di un array è identificato da un numero, a iniziare dallo `0`.
Quindi in questo array `hi` è identificato dal numero `1`:

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

E può essere acceduto come segue:
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
たとえば、次の配列内の `hi` は、数値 `1` で識別できます...

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

次のようにアクセスします...
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
그래서 이 배열의 `hi`는 숫자 `1`로 확인할 수 있습니다.

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

이렇게 접근할 수 있습니다.
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_nb-no.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Hvert innslag i et array identifiseres med et nummer, fra og med `0`.
Så i denne arrayet er `hei` identifisert ved nummeret `1`:

```js
var hilsinger = ['hallo', 'hei', 'god morgen'];
const hilsinger = ['hallo', 'hei', 'god morgen'];
```

Verdien kan nås slik som dette:
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_pt-br.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Cada item em um array é identificado por um número inteiro, começando do `0`.
Então neste array a string `hi` é identificada pelo número `1`:

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

Podemos acessá-la dessa forma:
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Например в этом массиве элементу `hi` соответствует номер `1`:

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

Получить доступ к нему можно вот так:
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_uk.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Тому в цьому масиві `hi` ідентифікується числом `1`:

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

Доступ до нього можна отримати так:
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
所以下面的数组中,数字 `1` 标识了 `hi`:

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

于是,`hi` 就可以像这样被访问:
Expand Down
2 changes: 1 addition & 1 deletion problems/looping-through-arrays/problem_zh-tw.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
所以下面的陣列中,數字 `1` 標識了 `hi`:

```js
var greetings = ['hello', 'hi', 'good morning'];
const greetings = ['hello', 'hi', 'good morning'];
```

於是,`hi` 就可以像這樣被存取:
Expand Down
4 changes: 2 additions & 2 deletions solutions/looping-through-arrays/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var pets = ['cat', 'dog', 'rat'];
const pets = ['cat', 'dog', 'rat'];

for (var i=0; i<pets.length; i++) {
for (let i=0; i<pets.length; i++) {
pets[i] = pets[i] + 's';
}

Expand Down