Skip to content

Commit 79633a9

Browse files
committed
reviewing instructions until es 21
1 parent f1dcd7e commit 79633a9

File tree

37 files changed

+221
-237
lines changed

37 files changed

+221
-237
lines changed

exercises/08.3-Sum-all-items/README.es.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `08.3` Suma todos los elementod
1+
# `08.3` Suma todos los elementos
22

33
## :pencil: Instrucciones:
44

@@ -7,7 +7,7 @@
77

88
```js
99
console.log(sumTheElements([2,13,34,5]))
10-
//this should print 54
10+
//el resultado debiese ser 54
1111
```
1212

1313
### Resultado esperado:

exercises/08.3-Sum-all-items/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Using a `for` loop, complete the code of the function `sum` so that it returns t
66

77
```js
88
console.log(sumTheElements([2,13,34,5]))
9-
//el resultado debiese ser 54
9+
//this should print 54
1010
```
1111

1212
### Expected result:

exercises/09-forEach-loop/README.es.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ En lugar de usar la clásica declaración `for`, hay una nueva forma de recorrer
55
Es posible recorrer un arreglo usando la función `array.forEach`. Debes especificar qué hacer en cada iteración del bucle.
66

77
```js
8-
/**
9-
* item: will be the value of the specific item (required).
10-
* index: will be the item index(optional).
11-
* arr: will be the array object to which the element belongs to (opcional).
12-
*/
138
myArray.forEach(function(item, index, arr){
149

1510
});
11+
/**
12+
* item: valor del elemento específico (requerido).
13+
* index: índice del elemento (opcional).
14+
* arr: objeto array al cual pertenece el elemento (opcional).
15+
*/
1616
```
1717

1818
## :pencil: Instrucciones:

exercises/09-forEach-loop/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ Instead of using the classic `for` statement, there is a new way to loop arrays
55
It is possible to loop an array using the `array.forEach` function. You have to specify what to do on each iteration of the loop.
66

77
```js
8-
/**
9-
* item: valor del elemento específico (requerido).
10-
* index: índice del elemento (opcional).
11-
* arr: objeto array al cual pertenece el elemento (opcional).
12-
*/
138
myArray.forEach(function(item, index, arr){
149

1510
});
11+
/**
12+
* item: will be the value of the specific item (required).
13+
* index: will be the item index(optional).
14+
* arr: will be the array object to which the element belongs to (opcional).
15+
*/
16+
17+
1618
```
1719

1820
## :pencil: Instructions:

exercises/10-Everything-is-awesome/README.es.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# `10.1` Todo es increíble
1+
# `10` Todo es increíble
22

33
## 📝 Instrucciones:
44

5-
Compara el elemento. Si es `1`, pone el número en el arreglo `return_array`.
5+
1. Compara el elemento. Si es `1`, pone el número en el arreglo `return_array`.
66

7-
Compara el elemento si es `0`, pone "Yahoo" en el arreglo o array `return_array` (en lugar del número)
7+
2. Compara el elemento si es `0`, pone "Yahoo" en el arreglo o array `return_array` (en lugar del número)
88

99
Ejemplo de la salida para [0,0,1,1,0]:
1010

exercises/10-Everything-is-awesome/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# `10.1` Everything is awesome
1+
# `10` Everything is awesome
22

33
# 📝 Instructions:
44

5-
Compare the item. If it is `1` push the number to the array `return_array`.
5+
1. Compare the item. If it is `1` push the number to the array `return_array`.
66

7-
Compare the item if it is 0 push "Yahoo" to the array `return_array` (instead of the number)
7+
2. Compare the item if it is 0 push "Yahoo" to the array `return_array` (instead of the number)
88

99
Example output for [0,0,1,1,0]:
1010

exercises/11-Do-while/README.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ do {
1616
} while (i < 5);
1717
```
1818

19-
## 📝 Instrucciones
19+
## 📝 Instrucciones:
2020

2121
1. Imprime cada número de la iteración en la consola del 20 al 0, pero concaténale un signo de exclamación(`!`) al elemento si el número es un multiplo de 5.
2222

exercises/11-Do-while/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ do {
1616
} while (i < 5);
1717
```
1818

19-
## 📝 Instructions
19+
## 📝 Instructions:
2020

2121
1. Print every iteration number on the console from 20 to 0 but concatenate an exclamation point to the output if the number is a module of 5.
2222

exercises/12-Delete-element/README.es.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# `12` Eliminar el elemento
22

3-
43
La única forma de eliminar a `Daniella` del array o arreglo (sin hacer trampa) será crear un nuevo arreglo con todas las demás personas, excepto Daniella.
54

6-
## 📝Instructions:
5+
## 📝Instrucciones:
76

87
1. Crea una función `deletePerson` que elimine a cualquier persona del arreglo y devuelva un nuevo arreglo sin esa persona.
98

exercises/14-Divide-and-Conquer/README.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ mergeTwoList([1,2,33,10,20,4]);
2525

2626
### 💡 Pista:
2727

28-
Crea variables vacías cuando necesites almacenar datos.
28+
+ Crea variables vacías cuando necesites almacenar datos.

exercises/14-Divide-and-Conquer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ mergeTwoList([1,2,33,10,20,4])
2525

2626
### 💡 Hint:
2727

28-
Create empty(placeholder) variables when you need to store data.
28+
+ Create empty(placeholder) variables when you need to store data.

exercises/15-Max-integer-from-array/README.es.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `15`El máximo número entero dentro del arreglo
1+
# `15` El máximo número entero dentro del arreglo
22

33
## 📝Instrucciones:
44

@@ -18,4 +18,4 @@
1818

1919
### Resultado esperado:
2020

21-
5435.
21+
5435

exercises/15-Max-integer-from-array/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919

2020
### Expected result:
2121

22-
5435.
22+
5435

exercises/16-Foreach-min-val/README.es.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Es posible recorrero una arreglo usando la función `array.forEach`. Debes espec
44
```js
55

66
myArray.forEach(function(item, index, arr){
7-
console.log(item, index);
7+
console.log(item, index)
8+
//item es el valor específico del elemento.
9+
//index será el índice del elemento.
10+
//arr será el array al cual pertenece el elemento.
11+
});
812

9-
//item will be the value of the specific item.
10-
//index will be the item index.
11-
//arr will be the array object to which the element belongs to.
1213

13-
});
1414
```
1515
## 📝 Instrucciones:
1616

exercises/16-Foreach-min-val/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ It is possible to traverse an array using the `array.forEach` function. You have
66
```js
77

88
myArray.forEach(function(item, index){
9-
console.log(item, index);
9+
console.log(item, index)
10+
//item will be the value of the specific item.
11+
//index will be the item index.
12+
//arr will be the array object to which the element belongs to.
13+
});
1014

11-
//item es el valor específico del elemento.
12-
//index será el índice del elemento.
13-
//arr será el array al cual pertenece el elemento.
1415

15-
});
1616

1717
```
1818

exercises/17-The-for-loop/README.es.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# `17` Un For Loop para encontrar un promedio
2+
13
Otra forma de recorrer un arreglo con el loop `for` es usando la declaración`in` de esta manera:
24

35
```js

exercises/18-Nested-arrays/README.es.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ Es posible encontrar un arreglo compuesto por otros arreglos (se llama arreglo o
55
En este ejemplo, tenemos una array o arreglo de coordenadas a las que puedes acceder haciendo lo siguiente:
66

77
```js
8-
//a la primera coordenada latitud
8+
//la primera coordenada latitud
99
var latitude = coordinatesArray[0][0];
10-
//a la primera coordenada longitud
10+
//la primera coordenada longitud
1111
var longitude = coordinatesArray[0][1];
1212
```
1313

14-
## 📝 Instructions:
14+
## 📝 Instruciones:
1515

1616
1. Recorre el arreglo(con un bucle) imprimiendo solo las longitudes.
1717

18-
### Expected result:
18+
### Resultado esperado:
1919

2020
```md
2121
-112.633853

exercises/18-Nested-arrays/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ var latitude = coordinatesArray[0][0];
1111
var longitude = coordinatesArray[0][1];
1212
```
1313

14-
## 📝 Instrucciones:
14+
## 📝 Instructions:
1515

1616
1. Loop through the array printing only the longitudes.
1717

1818

19-
### Resultado esperado:
19+
### Expected Result:
2020

2121
```md
2222
-112.633853
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
Instrucciones
2-
Dado un objeto denominado contact, repite todas sus propiedades y valores e imprímalos en la consola.
3-
Tendrás que recorrer sus propiedades para poder imprimirlas.
1+
# `19` Y uno y dos y tres
2+
3+
4+
## 📝 Instrucciones:
5+
6+
Dado un objeto denominado contact:
7+
8+
1. Repite todas sus propiedades y valores e imprímelos en la consola. Tendrás que recorrer (con un loop) sus propiedades para poder imprimirlas.
9+
10+
### Resultado esperado:
411

5-
Salida de consola esperada:
612
```md
713
fullname : John Doe
814
phone : 123-123-2134
915
1016
```
1117

12-
Pista
13-
MDN for in loop reference
18+
### :bulb: Pista:
19+
20+
Lee sobre los bucles/loops:
21+
1422
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#for...in_statement
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
# `19` And one and two and three
2-
# 📝Instruction
3-
- Given a contact object, please loop all its properties and values and print them on the console.
4-
- You will have to loop its properties to be able to print them
52

6-
Expected console output:
3+
## 📝 Instructions:
4+
5+
Given a contact object:
6+
7+
1. Please loop all its properties and values and print them on the console.You will have to loop its properties to be able to print them
8+
9+
### Expected result:
710

811
```md
912
fullname : John Doe
1013
phone : 123-123-2134
1114
1215
```
1316

14-
💡Hints
15-
MDN for in loop reference
17+
### 💡 Hint:
18+
19+
MDN for in loop reference:
20+
1621
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#for...in_statement
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
La función Array.map () es una de las funciones más utilizadas en Javascript. Es sorprendente porque te permite crear un nuevo arreglo utilizando cada elemento del arreglo original como semilla.
1+
# `20.1` Mapea un array
22

3-
En este ejemplo, estamos utilizando la función de map para crear un nuevo arreglo de horas civiles a partir de un arreglo determinado de horas militares.
3+
La función `Array.map()` es una de las funciones más utilizadas en Javascript. Es sorprendente porque te permite crear un nuevo arreglo utilizando cada elemento del arreglo original como semilla.
4+
5+
En este ejemplo, estamos utilizando la función de `map` para crear un nuevo arreglo de horas civiles a partir de un arreglo determinado de horas militares.
46

57
```js
68
// Dado un arreglo de horas militares
@@ -14,17 +16,20 @@ var militaryToCivilian = function(hour){
1416
else return hour + "am";
1517
}
1618

17-
// puedes crear una nueva hora civil mapeando el arreglo original pero pasando la función militaryToCivilian a la función map
19+
//puedes crear una nueva hora civil mapeando el arreglo original pero pasando la función militaryToCivilian a la función map
1820
var civilianHours = militaryHours.map(militaryToCivilian);
1921

2022
console.log(civilianHours);
2123
```
2224

23-
Copie y pegue el código dentro del editor de código para probarlo si lo desea.
25+
Copia y pega el código dentro del editor de código para probarlo si quieres.
26+
27+
## 📝 Instrucciones:
28+
29+
1. Usando la misma lógica dada en el ejemplo, agrega el código necesario para convertir un arreglo de valores `Celsius` en `Fahrenheit` dentro de la función de `map`.
30+
31+
## 💡 Pista:
2432

25-
Instrucciones
26-
Usando la misma lógica dada en el ejemplo, agrega el código necesario para convertir un arreglo de valores Celsius en Fahrenheit dentro de la función de map.
33+
Aquí hay un video de 3:40 min que explica la función del map:
2734

28-
Pista
29-
Aquí hay un video de 3:40 min que explica la función del map
3035
https://www.youtube.com/watch?v=hfYa4ugeyuc&t=32s

exercises/20.1-Map-an-array/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# `20.1` Map an array
22

3-
The Array.map() function is one of the most used functions in Javascript.
3+
The `Array.map()` function is one of the most used functions in Javascript.
44
It is amazing because it lets you create a new array using each item of the original array as a seed.
55

6-
In this example, we are using the map function to create a new array of
6+
In this example, we are using the `map` function to create a new array of
77
civilian hours starting from a given array of military hours.
88

99
```js
@@ -26,9 +26,12 @@ console.log(civilianHours);
2626

2727
Copy paste the code inside the code editor to test it if you want.
2828

29-
# 📝Instructions:
30-
Using the same logic given in the example, add the needed code to convert an array of Celsius values into Fahrenheit inside the map function.
29+
## 📝 Instructions:
30+
31+
1. Using the same logic given in the example, add the needed code to convert an array of `Celsius` values into `Fahrenheit` inside the `map` function.
32+
33+
## 💡 Hint:
34+
35+
Here is a 3:40 min video explaining the array map function:
3136

32-
## 💡Hints
33-
Here is a 3:40 min video explaining the array map function
3437
https://www.youtube.com/watch?v=hfYa4ugeyuc&t=32s

0 commit comments

Comments
 (0)