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
File renamed without changes
6 changes: 6 additions & 0 deletions exercises/01-Welcome/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ Practicaremos los bucles o loops en javascript hasta que te sientas cómodo con
Te recomendamos ver el siguiente ![video sbre loops o bucles](https://www.youtube.com/watch?v=U3ZlQSOcOI0) antes de empezar. Nos centraremos en:

1. For loop.

2. forEach.

3. while.

4. map.

5. filter.

6. find.

7. Diccionario de bucles (objetos literales).

Haga click en `next →` cuando estés listo para iniciar los ejercicios.
Expand Down
5 changes: 5 additions & 0 deletions exercises/01-Welcome/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ Practice loops in javascript until you become confortable with it.
We recomend you watching [this short video about loops](https://www.youtube.com/watch?v=U3ZlQSOcOI0) before starting. We will focus on:

1. For loop.

2. forEach.

3. while.
4. map.

5. filter.

6. find.

7. Loop dictionaries (object literals).

Click `next →` when you are ready to start the exercises.
Expand Down
Binary file removed exercises/01-Welcome/menu.png
Binary file not shown.
2 changes: 1 addition & 1 deletion exercises/02-Hello-World/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ console.log("How are you?");

## 💡 Pista:

Video de 5 minutos sobre la consola:
+ Video de 5 minutos sobre la consola:
https://www.youtube.com/watch?v=1RlkftxAo-M
2 changes: 1 addition & 1 deletion exercises/02-Hello-World/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ console.log("How are you?");

## 💡 Hint:

5 minutes video about the console:
+ 5 minutes video about the console:
https://www.youtube.com/watch?v=1RlkftxAo-M
4 changes: 2 additions & 2 deletions exercises/03.1-Access-and-retrieve/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Cada arreglo tiene las siguientes partes:

- Index (indice): es la posición de un elemento.

![Como funciona un arreglo](https://github.com/4GeeksAcademy/javascript-arrays-exercises-tutorial/blob/5e6a9b1276ed2b7de1b9bb0240105983c170611c/.learn/assets/DbmSOHT.png?raw=true)
![Como funciona un arreglo](../../.learn/assets/DbmSOHT.png?raw=true)

Para acceder a cualquier elemento en particular dentro del arreglo (array) debes conocer su índice (posición. El índice es un valor entero que representa la posición en la que se encuentra el elemento.

Expand All @@ -32,4 +32,4 @@ Para acceder a cualquier elemento en particular dentro del arreglo (array) debes

### :bulb: Pista:

Usa null como valor y no "null" como un string.
+ Usa `null` como valor y no `null` como un string.
4 changes: 2 additions & 2 deletions exercises/03.1-Access-and-retrieve/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Every array has the following parts:

- Index: is the position of an element.

![How arrays work](https://github.com/4GeeksAcademy/javascript-arrays-exercises-tutorial/blob/5e6a9b1276ed2b7de1b9bb0240105983c170611c/.learn/assets/DbmSOHT.png?raw=true)
![How arrays work](../../.learn/assets/DbmSOHT.png?raw=true)

To access any item within the array you need to know its index (position). The index is an integer value that represents the position in which the element is located.

Expand All @@ -35,5 +35,5 @@ To access any item within the array you need to know its index (position). The i

### :bulb: Hint:

Use null as a value and not "null" as a string.
+ Use `null` as a value and not `null` as a string.

4 changes: 2 additions & 2 deletions exercises/03.2-Retrieve-Items/README.es.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# `03.2` Retrieve Items

La única forma de acceder a un elemento particular en un arreglo es usando un índice. Un índice es un `número` entero que representa la posición a la que desea acceder en el arreglo.
La única forma de acceder a un elemento particular en un arreglo es usando un índice. Un **índice (index)** es un número entero que representa la posición a la que desea acceder en el arreglo.

Debes envolver el índice entre corchetes de esta manera:

```js
var myValue = array[index];
```

# 📝 Instrucciones
## 📝 Instrucciones

1. Imprima en la consola el 1er elemento de array o arreglo.

Expand Down
4 changes: 2 additions & 2 deletions exercises/03.2-Retrieve-Items/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ tutorial: https://www.youtube.com/watch?v=rWYIgofIAME

# `03.2` Retrieve Items

The only way to access a particular element in an array is by using an index. An index is an integer `number` that represents the position you want to access in the array.
The only way to access a particular element in an array is by using an index. An **index** is an integer number that represents the position you want to access in the array.

You need to wrap the index into brackets like this:

```js
var myValue = array[index];
```

# 📝 Instructions
## 📝 Instructions:

1. Print on the console the 1st element of the array

Expand Down
8 changes: 4 additions & 4 deletions exercises/05.2-Loop-from-seven-to-twelve/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

## 📝 Instrucciones:

1. Cuenta del 7 al 12 con un loop e imprime cada número en la consola.
1. Cuenta del `7` al `12` con un loop e imprime cada número en la consola.

## Resultado esperado:

```bash
```js
7
8
9
Expand All @@ -15,9 +15,9 @@
12
```

## 💡Pista:
## 💡 Pista:

Tienes que recorrer de 7 a 12 (incluyendo 12).
+ Tienes que recorrer de `7` a `12` (incluyendo 12).



8 changes: 4 additions & 4 deletions exercises/05.2-Loop-from-seven-to-twelve/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ tutorial: https://www.youtube.com/watch?v=6eLXV_IL2m0

## 📝 Instructions:

1. Count from 7 to 12 with a loop and print each number on the console.
1. Count from `7` to `12` with a loop and print each number on the console.

## Expected result:

```bash
```js
7
8
9
10
11
12
```
## 💡Hint:
## 💡 Hint:

You have to loop from 7 to 12 (including 12).
You have to loop from `7` to `12` (including `12`).



20 changes: 3 additions & 17 deletions exercises/06.2-Loop-from-the-top/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,10 @@ Este loop o bucle está haciendo un bucle del arreglo o array de principio a fin

## Resultado esperado:

```bash
12
25
23
55
56432
48
23
867543
8
654
47889
4
5
3423
```
![image](../../.learn/assets/06.2.png)

## 💡Pista

1. Recuerde que el ciclo funciona así: https://www.youtube.com/watch?v=TSMzvFwpE_A
2. La última posición del arreglo será mySampleArray.length - 1 porque los arreglos comienzan en 0

2. La última posición del arreglo será `mySampleArray.length - 1` porque los arreglos comienzan en `0`
24 changes: 5 additions & 19 deletions exercises/06.2-Loop-from-the-top/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,10 @@ This loop is looping the array from beginning to end... increasing one by one.

## Expected result:

```bash
12
25
23
55
56432
48
23
867543
8
654
47889
4
5
3423
```

## 💡Hint
![image](../../.learn/assets/06.2.png)

## 💡 Hint:

1. Remember the loop works like this: https://www.youtube.com/watch?v=TSMzvFwpE_A
2. The last position of the array will be mySampleArray.length - 1 because arrays start at 0

2. The last position of the array will be `mySampleArray.length - 1` because arrays start at 0
2 changes: 1 addition & 1 deletion exercises/06.3-Loop-adding-two/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Este código está reproduciendo todo el conjunto, uno por uno, e imprime los el

## Resultado esperado:

```md
```js
3423
4
654
Expand Down
2 changes: 1 addition & 1 deletion exercises/06.3-Loop-adding-two/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This code is looping the whole array, one by one, and printing the items on the

## Expected result:

```md
```js
3423
4
654
Expand Down
2 changes: 1 addition & 1 deletion exercises/06.4-Loop-from-the-half-to-the-end/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Este bucle(loop) no está recorriendo el arreglo en lo absoluto ... porque las v

### Resultado esperado:

```md
```js
23
48
56432
Expand Down
2 changes: 1 addition & 1 deletion exercises/06.4-Loop-from-the-half-to-the-end/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Change nothing but the value of those 3 variables!

### Expected result:

```md
```js
23
48
56432
Expand Down
4 changes: 2 additions & 2 deletions exercises/06.5-One-last-looping/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

### Resultado esperado:

```md
```js
Annie
Bart
Cesco
Expand All @@ -25,4 +25,4 @@ Esmeralda

+ Use un bucle `for ()` como hemos lo hemos hecho en ejercicios anteriores.

+ Recuerda que los arreglos comienzan en la posición 0.
+ Recuerda que los arreglos comienzan en la posición `0`.
4 changes: 2 additions & 2 deletions exercises/06.5-One-last-looping/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tutorial: https://www.youtube.com/watch?v=IwDDj6wN4jY

### Expected result:

```md
```js
Annie
Bart
Cesco
Expand All @@ -29,4 +29,4 @@ Esmeralda

+ Use a `for()` loop like we have been using in previous exercises.

+ Remember that arrays start at position 0.
+ Remember that arrays start at position `0`.
2 changes: 1 addition & 1 deletion exercises/07.1-Finding-Waldo/README.es.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# `07.1` Encuentra a Wally :smile:
![Finding Waldo](https://github.com/4GeeksAcademy/javascript-arrays-exercises-tutorial/blob/5c8f7b7dbb094e0552565227fc24faad6dc05a13/.breathecode/assets/finding_waldo.jpeg?raw=true)
![Finding Waldo](../../.learn/assets/finding_waldo.jpeg)

¿Alguna vez has jugado a encontrar a Waldo (o Wally)? Solía jugar mucho cuando era pequeño, este ejercicio es una versión digital de encontrar a Waldo.

Expand Down
2 changes: 1 addition & 1 deletion exercises/07.1-Finding-Waldo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tutorial: https://www.youtube.com/watch?v=5WphKLyEJaU

# `07.1` Find Waldo :smile:

![Finding Waldo](https://github.com/4GeeksAcademy/javascript-arrays-exercises-tutorial/blob/5c8f7b7dbb094e0552565227fc24faad6dc05a13/.breathecode/assets/finding_waldo.jpeg?raw=true)
![Finding Waldo](../../.learn/assets/finding_waldo.jpeg)

Have you every played finding Waldo? I used to play it a lot when I was little, this exercise is a digital version of finding Waldo.

Expand Down
16 changes: 8 additions & 8 deletions exercises/07.2-Letter-Counter/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ Por ejemplo:
```js
const word = "Hello World";

// Should print on the console { h: 1, e: 1, l: 3, o: 2, w: 1, r: 1, d: 1 }
// Debería imprimir en la consola { h: 1, e: 1, l: 3, o: 2, w: 1, r: 1, d: 1 }
```

## :bulb: Pista
## :bulb: Pista:

1. Recorre todo el string (usa un bucle).
+ Recorre todo el string (usa un bucle).

2. En cada iteración verifica si el objeto `counts` tiene la letra inicializada como una propiedad.
+ En cada iteración verifica si el objeto `counts` tiene la letra inicializada como una propiedad.

3. Si no está inicializada, hazlo y establece el valor en 1 (la primera vez que se encuentra).
+ Si no está inicializada, hazlo y establece el valor en 1 (la primera vez que se encuentra).

4. Si ya se inicializó, simplemente incrementa el valor de la propiedad en uno.
+ Si ya se inicializó, simplemente incrementa el valor de la propiedad en uno.

5. Recuerda ignorar los espacios en blanco en el string.
+ Recuerda ignorar los espacios en blanco en el string.

6. Debes colocar en minúscula(lowercase) todas las letras para tener un conteo exacto de todas las letras.
+ Debes colocar en minúscula(lowercase) todas las letras para tener un conteo exacto de todas las letras.
2 changes: 1 addition & 1 deletion exercises/07.3-Flip-Array/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Por ejemplo:

```md
```js
array inicial: [45, 67, 87, 23, 5, 32, 60]; array array final : [60, 32, 5 , 23, 87, 67, 45];
```

Expand Down
17 changes: 8 additions & 9 deletions exercises/08.1-Mixed-array/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

## :pencil: Instrucciones:

1. Escribe una función que imprima automáticamente en la consola los tipos de valores que contiene la lista en cada posición.
1. Escribe una función que imprima automáticamente en la consola los tipos de valores que contiene el array en cada posición.

### Resultado esperado:

```md
number
boolean
string
object
string
number
object
```js
[
'number', 'boolean',
'string', 'object',
'string', 'number',
'object'
]
```

## :bulb: Pista
Expand Down
4 changes: 2 additions & 2 deletions exercises/08.1-Mixed-array/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ tutorial: https://www.youtube.com/watch?v=3o02odJhieo

## :pencil: Instructions:

1. Write a function to programmatically print in the console the types of the values that the list contains in each position.
1. Write a function to programmatically print in the console the types of the values that the array contains in each position.

### Expected Result:

```md
```js
[
'number', 'boolean',
'string', 'object',
Expand Down
Loading