diff --git a/exercises/01-Welcome/menu2.png b/.learn/assets/menu2.png similarity index 100% rename from exercises/01-Welcome/menu2.png rename to .learn/assets/menu2.png diff --git a/exercises/01-Welcome/README.es.md b/exercises/01-Welcome/README.es.md index a78d1d84..44be83ed 100644 --- a/exercises/01-Welcome/README.es.md +++ b/exercises/01-Welcome/README.es.md @@ -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. diff --git a/exercises/01-Welcome/README.md b/exercises/01-Welcome/README.md index 6bcccda2..aeaf3d6d 100644 --- a/exercises/01-Welcome/README.md +++ b/exercises/01-Welcome/README.md @@ -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. diff --git a/exercises/01-Welcome/menu.png b/exercises/01-Welcome/menu.png deleted file mode 100644 index 820f3dc1..00000000 Binary files a/exercises/01-Welcome/menu.png and /dev/null differ diff --git a/exercises/02-Hello-World/README.es.md b/exercises/02-Hello-World/README.es.md index 1a167956..dc44de2a 100644 --- a/exercises/02-Hello-World/README.es.md +++ b/exercises/02-Hello-World/README.es.md @@ -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 \ No newline at end of file diff --git a/exercises/02-Hello-World/README.md b/exercises/02-Hello-World/README.md index 805c1117..b46e4f67 100644 --- a/exercises/02-Hello-World/README.md +++ b/exercises/02-Hello-World/README.md @@ -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 diff --git a/exercises/03.1-Access-and-retrieve/README.es.md b/exercises/03.1-Access-and-retrieve/README.es.md index 0f0974d3..b2bede57 100644 --- a/exercises/03.1-Access-and-retrieve/README.es.md +++ b/exercises/03.1-Access-and-retrieve/README.es.md @@ -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. @@ -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. diff --git a/exercises/03.1-Access-and-retrieve/README.md b/exercises/03.1-Access-and-retrieve/README.md index 098a5b6c..56800c1e 100644 --- a/exercises/03.1-Access-and-retrieve/README.md +++ b/exercises/03.1-Access-and-retrieve/README.md @@ -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. @@ -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. diff --git a/exercises/03.2-Retrieve-Items/README.es.md b/exercises/03.2-Retrieve-Items/README.es.md index 8f87c50c..827a028e 100644 --- a/exercises/03.2-Retrieve-Items/README.es.md +++ b/exercises/03.2-Retrieve-Items/README.es.md @@ -1,6 +1,6 @@ # `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: @@ -8,7 +8,7 @@ Debes envolver el índice entre corchetes de esta manera: var myValue = array[index]; ``` -# 📝 Instrucciones +## 📝 Instrucciones 1. Imprima en la consola el 1er elemento de array o arreglo. diff --git a/exercises/03.2-Retrieve-Items/README.md b/exercises/03.2-Retrieve-Items/README.md index fe95f899..7a3f34f2 100644 --- a/exercises/03.2-Retrieve-Items/README.md +++ b/exercises/03.2-Retrieve-Items/README.md @@ -4,7 +4,7 @@ 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: @@ -12,7 +12,7 @@ You need to wrap the index into brackets like this: var myValue = array[index]; ``` -# 📝 Instructions +## 📝 Instructions: 1. Print on the console the 1st element of the array diff --git a/exercises/05.2-Loop-from-seven-to-twelve/README.es.md b/exercises/05.2-Loop-from-seven-to-twelve/README.es.md index 0c8e003e..18057e5b 100644 --- a/exercises/05.2-Loop-from-seven-to-twelve/README.es.md +++ b/exercises/05.2-Loop-from-seven-to-twelve/README.es.md @@ -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 @@ -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). diff --git a/exercises/05.2-Loop-from-seven-to-twelve/README.md b/exercises/05.2-Loop-from-seven-to-twelve/README.md index ca1648f2..1cd65deb 100644 --- a/exercises/05.2-Loop-from-seven-to-twelve/README.md +++ b/exercises/05.2-Loop-from-seven-to-twelve/README.md @@ -6,11 +6,11 @@ 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 @@ -18,9 +18,9 @@ tutorial: https://www.youtube.com/watch?v=6eLXV_IL2m0 11 12 ``` -## 💡Hint: +## 💡 Hint: -You have to loop from 7 to 12 (including 12). +You have to loop from `7` to `12` (including `12`). diff --git a/exercises/06.2-Loop-from-the-top/README.es.md b/exercises/06.2-Loop-from-the-top/README.es.md index 8919912f..6736d4ab 100644 --- a/exercises/06.2-Loop-from-the-top/README.es.md +++ b/exercises/06.2-Loop-from-the-top/README.es.md @@ -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 \ No newline at end of file + +2. La última posición del arreglo será `mySampleArray.length - 1` porque los arreglos comienzan en `0` \ No newline at end of file diff --git a/exercises/06.2-Loop-from-the-top/README.md b/exercises/06.2-Loop-from-the-top/README.md index e12b7c29..7463dad9 100644 --- a/exercises/06.2-Loop-from-the-top/README.md +++ b/exercises/06.2-Loop-from-the-top/README.md @@ -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 \ No newline at end of file + +2. The last position of the array will be `mySampleArray.length - 1` because arrays start at 0 \ No newline at end of file diff --git a/exercises/06.3-Loop-adding-two/README.es.md b/exercises/06.3-Loop-adding-two/README.es.md index e274c1d7..49424c14 100644 --- a/exercises/06.3-Loop-adding-two/README.es.md +++ b/exercises/06.3-Loop-adding-two/README.es.md @@ -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 diff --git a/exercises/06.3-Loop-adding-two/README.md b/exercises/06.3-Loop-adding-two/README.md index 1fc7ebf6..9c411b59 100644 --- a/exercises/06.3-Loop-adding-two/README.md +++ b/exercises/06.3-Loop-adding-two/README.md @@ -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 diff --git a/exercises/06.4-Loop-from-the-half-to-the-end/README.es.md b/exercises/06.4-Loop-from-the-half-to-the-end/README.es.md index 567002e8..2aadf1e7 100644 --- a/exercises/06.4-Loop-from-the-half-to-the-end/README.es.md +++ b/exercises/06.4-Loop-from-the-half-to-the-end/README.es.md @@ -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 diff --git a/exercises/06.4-Loop-from-the-half-to-the-end/README.md b/exercises/06.4-Loop-from-the-half-to-the-end/README.md index 62efacde..a3ba84cc 100644 --- a/exercises/06.4-Loop-from-the-half-to-the-end/README.md +++ b/exercises/06.4-Loop-from-the-half-to-the-end/README.md @@ -16,7 +16,7 @@ Change nothing but the value of those 3 variables! ### Expected result: -```md +```js 23 48 56432 diff --git a/exercises/06.5-One-last-looping/README.es.md b/exercises/06.5-One-last-looping/README.es.md index 20bd40b2..5ff1fefc 100644 --- a/exercises/06.5-One-last-looping/README.es.md +++ b/exercises/06.5-One-last-looping/README.es.md @@ -7,7 +7,7 @@ ### Resultado esperado: -```md +```js Annie Bart Cesco @@ -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`. diff --git a/exercises/06.5-One-last-looping/README.md b/exercises/06.5-One-last-looping/README.md index 938360b0..2804830d 100644 --- a/exercises/06.5-One-last-looping/README.md +++ b/exercises/06.5-One-last-looping/README.md @@ -11,7 +11,7 @@ tutorial: https://www.youtube.com/watch?v=IwDDj6wN4jY ### Expected result: -```md +```js Annie Bart Cesco @@ -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`. diff --git a/exercises/07.1-Finding-Waldo/README.es.md b/exercises/07.1-Finding-Waldo/README.es.md index a37f09ea..231c4cdf 100644 --- a/exercises/07.1-Finding-Waldo/README.es.md +++ b/exercises/07.1-Finding-Waldo/README.es.md @@ -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. diff --git a/exercises/07.1-Finding-Waldo/README.md b/exercises/07.1-Finding-Waldo/README.md index 352619af..dba09049 100644 --- a/exercises/07.1-Finding-Waldo/README.md +++ b/exercises/07.1-Finding-Waldo/README.md @@ -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. diff --git a/exercises/07.2-Letter-Counter/README.es.md b/exercises/07.2-Letter-Counter/README.es.md index d9536ce5..235fbd91 100644 --- a/exercises/07.2-Letter-Counter/README.es.md +++ b/exercises/07.2-Letter-Counter/README.es.md @@ -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. diff --git a/exercises/07.3-Flip-Array/README.es.md b/exercises/07.3-Flip-Array/README.es.md index a4410906..709f710d 100644 --- a/exercises/07.3-Flip-Array/README.es.md +++ b/exercises/07.3-Flip-Array/README.es.md @@ -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]; ``` diff --git a/exercises/08.1-Mixed-array/README.es.md b/exercises/08.1-Mixed-array/README.es.md index 6df05356..9c87cddb 100644 --- a/exercises/08.1-Mixed-array/README.es.md +++ b/exercises/08.1-Mixed-array/README.es.md @@ -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 diff --git a/exercises/08.1-Mixed-array/README.md b/exercises/08.1-Mixed-array/README.md index 2baaee98..698ed1e0 100644 --- a/exercises/08.1-Mixed-array/README.md +++ b/exercises/08.1-Mixed-array/README.md @@ -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', diff --git a/exercises/08.3-Sum-all-items/README.es.md b/exercises/08.3-Sum-all-items/README.es.md index bdab3e8a..e6f218e0 100644 --- a/exercises/08.3-Sum-all-items/README.es.md +++ b/exercises/08.3-Sum-all-items/README.es.md @@ -11,8 +11,9 @@ console.log(sumTheElements([2,13,34,5])) ``` ### Resultado esperado: - +```js 925960 +```` # :bulb: Pista: diff --git a/exercises/08.3-Sum-all-items/README.md b/exercises/08.3-Sum-all-items/README.md index 8add5398..edd90f79 100644 --- a/exercises/08.3-Sum-all-items/README.md +++ b/exercises/08.3-Sum-all-items/README.md @@ -11,7 +11,9 @@ console.log(sumTheElements([2,13,34,5])) ### Expected result: -`925960` +```js +925960 +``` # :bulb: Hint: diff --git a/exercises/09-forEach-loop/README.es.md b/exercises/09-forEach-loop/README.es.md index 852fcad3..74741d24 100644 --- a/exercises/09-forEach-loop/README.es.md +++ b/exercises/09-forEach-loop/README.es.md @@ -23,4 +23,4 @@ En este momento, el código está imprimiendo todos los elementos en el arreglo ## :bulb: Pista: -Un número X es divisible por 2 si: (X%2===0) \ No newline at end of file ++ Un número X es divisible por 2 si `(X%2===0)`. \ No newline at end of file diff --git a/exercises/09-forEach-loop/README.md b/exercises/09-forEach-loop/README.md index 897dfdd9..7bf8f6e1 100644 --- a/exercises/09-forEach-loop/README.md +++ b/exercises/09-forEach-loop/README.md @@ -25,4 +25,4 @@ Right now, the code is printing all the items in the array: ## :bulb: Hint: -A number X is divisible by 2 if: (X%2===0) \ No newline at end of file +A number X is divisible by 2 if: `(X%2===0)`. \ No newline at end of file diff --git a/exercises/10-Everything-is-awesome/README.es.md b/exercises/10-Everything-is-awesome/README.es.md index 543efe8c..84fc33c8 100644 --- a/exercises/10-Everything-is-awesome/README.es.md +++ b/exercises/10-Everything-is-awesome/README.es.md @@ -8,6 +8,6 @@ Ejemplo de la salida para [0,0,1,1,0]: -```bash +```js ['Yahoo','Yahoo','1','1','Yahoo'] ``` \ No newline at end of file diff --git a/exercises/10-Everything-is-awesome/README.md b/exercises/10-Everything-is-awesome/README.md index 964c11a7..67783624 100644 --- a/exercises/10-Everything-is-awesome/README.md +++ b/exercises/10-Everything-is-awesome/README.md @@ -8,6 +8,6 @@ Example output for [0,0,1,1,0]: -```bash +```js ['Yahoo','Yahoo','1','1','Yahoo'] ``` \ No newline at end of file diff --git a/exercises/11-Do-while/README.es.md b/exercises/11-Do-while/README.es.md index 338b85cc..daf64085 100644 --- a/exercises/11-Do-while/README.es.md +++ b/exercises/11-Do-while/README.es.md @@ -20,11 +20,11 @@ do { 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. -2. Al final haz un `console.log()`de "LIFTOFF" +2. Al final haz un `console.log()`de `LIFTOFF` ### Resultado esperado: -```md +```js 20! 19 18 diff --git a/exercises/11-Do-while/README.md b/exercises/11-Do-while/README.md index 544a046e..195e6b41 100644 --- a/exercises/11-Do-while/README.md +++ b/exercises/11-Do-while/README.md @@ -20,11 +20,11 @@ do { 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. -2. At the end `console.log()`de LIFTOFF" +2. At the end `console.log()`de `LIFTOFF`. ### Expected result: -```md +```js 20! 19 18 diff --git a/exercises/12-Delete-element/README.es.md b/exercises/12-Delete-element/README.es.md index 98d24607..dcbbc36d 100644 --- a/exercises/12-Delete-element/README.es.md +++ b/exercises/12-Delete-element/README.es.md @@ -6,11 +6,9 @@ La única forma de eliminar a `Daniella` del array o arreglo (sin hacer trampa) 1. Crea una función `deletePerson` que elimine a cualquier persona del arreglo y devuelva un nuevo arreglo sin esa persona. -### Resultado esperado: - +### Resultado esperado ```js - ['juan', 'ana', 'michelle', 'stefany', 'lucy', 'barak'] ['ana', 'michelle', 'daniella', 'stefany', 'lucy', 'barak'] ['juan', 'ana', 'michelle', 'daniella', 'stefany', 'lucy', 'barak'] diff --git a/exercises/15-Max-integer-from-array/README.es.md b/exercises/15-Max-integer-from-array/README.es.md index b6a07351..8f1de1d6 100644 --- a/exercises/15-Max-integer-from-array/README.es.md +++ b/exercises/15-Max-integer-from-array/README.es.md @@ -17,5 +17,6 @@ - Al final tendrá el mayor número almacenado en la variable. ### Resultado esperado: - - 5435 \ No newline at end of file +```js + 5435 + ``` \ No newline at end of file diff --git a/exercises/15-Max-integer-from-array/README.md b/exercises/15-Max-integer-from-array/README.md index 74bd3a21..0d93dd34 100644 --- a/exercises/15-Max-integer-from-array/README.md +++ b/exercises/15-Max-integer-from-array/README.md @@ -19,4 +19,6 @@ ### Expected result: +```js 5435 +``` \ No newline at end of file diff --git a/exercises/16-Foreach-min-val/README.es.md b/exercises/16-Foreach-min-val/README.es.md index 400eff5e..0f270547 100644 --- a/exercises/16-Foreach-min-val/README.es.md +++ b/exercises/16-Foreach-min-val/README.es.md @@ -27,6 +27,6 @@ myArray.forEach(function(item, index, arr){ - Fuera del bucle, una vez finalizado el bucle, imprima el valor auxiliar. ### Resultado esperado: - +```js 23 - +``` diff --git a/exercises/16-Foreach-min-val/README.md b/exercises/16-Foreach-min-val/README.md index fd774d9a..ce8409ee 100644 --- a/exercises/16-Foreach-min-val/README.md +++ b/exercises/16-Foreach-min-val/README.md @@ -33,5 +33,6 @@ myArray.forEach(function(item, index){ ### Expected result: - +```js 23 + ``` diff --git a/exercises/17-The-for-loop/README.es.md b/exercises/17-The-for-loop/README.es.md index da9b4e1b..8571f6eb 100644 --- a/exercises/17-The-for-loop/README.es.md +++ b/exercises/17-The-for-loop/README.es.md @@ -15,9 +15,9 @@ for (var index in myArray){ 2. Imprímelo en la consola. ### 💡 Pista: - -Para imprimir el promedio, debes sumar todos los valores y dividir el resultado por la longitud (length) total del arreglo. ++ Para imprimir el promedio, debes sumar todos los valores y dividir el resultado por la longitud (length) total del arreglo. ### Resultado esperado: - -27278.8125 \ No newline at end of file +```js +27278.8125 +``` \ No newline at end of file diff --git a/exercises/17-The-for-loop/README.md b/exercises/17-The-for-loop/README.md index f1072f7b..facbf58e 100644 --- a/exercises/17-The-for-loop/README.md +++ b/exercises/17-The-for-loop/README.md @@ -16,12 +16,13 @@ for (var index in myArray){ ### 💡 Hint: -To print the average, you have to add all the values and divide the result by the total length of the list. ++ To print the average, you have to add all the values and divide the result by the total length of the list. ### Expected result: +```js 27278.8125 - +``` diff --git a/exercises/18-Nested-arrays/README.es.md b/exercises/18-Nested-arrays/README.es.md index c05d5712..32e0f04a 100644 --- a/exercises/18-Nested-arrays/README.es.md +++ b/exercises/18-Nested-arrays/README.es.md @@ -17,7 +17,7 @@ var longitude = coordinatesArray[0][1]; ### Resultado esperado: -```md +```js -112.633853 -63.987 -81.901693 diff --git a/exercises/18-Nested-arrays/README.md b/exercises/18-Nested-arrays/README.md index a132931d..695af0f8 100644 --- a/exercises/18-Nested-arrays/README.md +++ b/exercises/18-Nested-arrays/README.md @@ -18,7 +18,7 @@ var longitude = coordinatesArray[0][1]; ### Expected Result: -```md +```js -112.633853 -63.987 -81.901693 diff --git a/exercises/19-And-One-and-a-Two-and-a-Three/README.es.md b/exercises/19-And-One-and-a-Two-and-a-Three/README.es.md index d83539d9..a287a6dd 100644 --- a/exercises/19-And-One-and-a-Two-and-a-Three/README.es.md +++ b/exercises/19-And-One-and-a-Two-and-a-Three/README.es.md @@ -9,7 +9,7 @@ Dado un objeto denominado contact: ### Resultado esperado: -```md +```js fullname : John Doe phone : 123-123-2134 email : test@nowhere.com diff --git a/exercises/19-And-One-and-a-Two-and-a-Three/README.md b/exercises/19-And-One-and-a-Two-and-a-Three/README.md index 5bf8cbf8..30a2f357 100644 --- a/exercises/19-And-One-and-a-Two-and-a-Three/README.md +++ b/exercises/19-And-One-and-a-Two-and-a-Three/README.md @@ -8,7 +8,7 @@ Given a contact object: ### Expected result: -```md +```ja fullname : John Doe phone : 123-123-2134 email : test@nowhere.com diff --git a/exercises/20.1-Map-an-array/README.es.md b/exercises/20.1-Map-an-array/README.es.md index 021adaf1..3b1489fc 100644 --- a/exercises/20.1-Map-an-array/README.es.md +++ b/exercises/20.1-Map-an-array/README.es.md @@ -30,6 +30,6 @@ Copia y pega el código dentro del editor de código para probarlo si quieres. ## 💡 Pista: -Aquí hay un video de 3:40 min que explica la función del map: ++ Aquí hay un video de 3:40 min que explica la función del map: https://www.youtube.com/watch?v=hfYa4ugeyuc&t=32s \ No newline at end of file diff --git a/exercises/20.1-Map-an-array/README.md b/exercises/20.1-Map-an-array/README.md index 50653904..0c5046fe 100644 --- a/exercises/20.1-Map-an-array/README.md +++ b/exercises/20.1-Map-an-array/README.md @@ -32,6 +32,6 @@ Copy paste the code inside the code editor to test it if you want. ## 💡 Hint: -Here is a 3:40 min video explaining the array map function: ++ Here is a 3:40 min video explaining the array map function: https://www.youtube.com/watch?v=hfYa4ugeyuc&t=32s \ No newline at end of file diff --git a/exercises/20.3-Map-with-function-inside-variable/README.es.md b/exercises/20.3-Map-with-function-inside-variable/README.es.md index f722a4b4..56be6b68 100644 --- a/exercises/20.3-Map-with-function-inside-variable/README.es.md +++ b/exercises/20.3-Map-with-function-inside-variable/README.es.md @@ -10,7 +10,7 @@ La función almacenada en la variable `prepender` devuelve todo lo que se le pas ### Expected result: -```md +```js [ 'My name is: Alice', 'My name is: Bob', 'My name is: Marry', diff --git a/exercises/20.3-Map-with-function-inside-variable/README.md b/exercises/20.3-Map-with-function-inside-variable/README.md index 11b0cd7f..0896f848 100644 --- a/exercises/20.3-Map-with-function-inside-variable/README.md +++ b/exercises/20.3-Map-with-function-inside-variable/README.md @@ -10,7 +10,7 @@ The function stored in the variable `prepender` returns whatever is passed to it ### Resultado esperado: -```md +```js [ 'My name is: Alice', 'My name is: Bob', 'My name is: Marry', diff --git a/exercises/20.4-Map-data-types/README.es.md b/exercises/20.4-Map-data-types/README.es.md index 5a94d17d..8363d72c 100644 --- a/exercises/20.4-Map-data-types/README.es.md +++ b/exercises/20.4-Map-data-types/README.es.md @@ -8,11 +8,10 @@ Algunas veces los arreglos vienen con valores mixtos y debes unificarlos en un s ### Resultado esperado: -```md +```js [string,string,... ,number,string,...] ``` ### 💡 Pista: -Usa la función `typeof` para obtener el tipo de datos -Más sobre el tipo de función. \ No newline at end of file ++ Usa la función `typeof` para obtener el tipo de datos diff --git a/exercises/20.4-Map-data-types/README.md b/exercises/20.4-Map-data-types/README.md index a30bc3cf..cb742bdc 100644 --- a/exercises/20.4-Map-data-types/README.md +++ b/exercises/20.4-Map-data-types/README.md @@ -8,11 +8,10 @@ Some times arrays come with mixed values and you need to unify them into only on ### Expected result: -```md +```js [string,string,... ,number,string,...] ``` ### 💡 Hint: -Use the `typeof` function to get the data type -More about the typeof function. \ No newline at end of file ++ Use the `typeof` function to get the data type diff --git a/exercises/20.5-Map-arrays-of-objects/README.es.md b/exercises/20.5-Map-arrays-of-objects/README.es.md index 416e692a..3a2328c4 100644 --- a/exercises/20.5-Map-arrays-of-objects/README.es.md +++ b/exercises/20.5-Map-arrays-of-objects/README.es.md @@ -8,7 +8,7 @@ El algoritmo actual crea un arreglo con solo los nombres de las personas y los i 1. Actualiza la función `map` para que cree un arreglo donde cada elemento contenga lo siguiente: -```md +```js Hello my name is Joe and I am 13 years old. ``` @@ -23,7 +23,7 @@ Hello my name is Joe and I am 13 years old. ### Resultado esperado: -```md +```js [ 'Hello, my name is Joe and I am 32 years old', 'Hello, my name is Bob and I am 42 years old', 'Hello, my name is Erika and I am 28 years old', diff --git a/exercises/20.5-Map-arrays-of-objects/README.md b/exercises/20.5-Map-arrays-of-objects/README.md index 26e88ec7..ebf58591 100644 --- a/exercises/20.5-Map-arrays-of-objects/README.md +++ b/exercises/20.5-Map-arrays-of-objects/README.md @@ -8,7 +8,7 @@ The current algorithm creates an array with only the names of the people and pri 1. Please update the mapping function so it creates an array where each item contains the following: -```md +```js Hello my name is Joe and I am 13 years old. ``` @@ -22,7 +22,7 @@ Hello my name is Joe and I am 13 years old. ### Expected result: -```md +```js [ 'Hello, my name is Joe and I am 32 years old', 'Hello, my name is Bob and I am 42 years old', 'Hello, my name is Erika and I am 28 years old', diff --git a/exercises/20.6-Yes-and-no/README.es.md b/exercises/20.6-Yes-and-no/README.es.md index 3fc06e8c..3098e9f8 100644 --- a/exercises/20.6-Yes-and-no/README.es.md +++ b/exercises/20.6-Yes-and-no/README.es.md @@ -8,7 +8,7 @@ ### Resultado esperado: -```md +```js [ 'woko', 'wiki', 'woko', 'woko', 'wiki', 'wiki', 'wiki', 'woko', 'woko', 'wiki', 'woko', 'wiki', 'wiki', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'wiki', 'woko', 'woko', 'woko', 'woko', 'wiki' ] ``` @@ -16,8 +16,8 @@ + Necesitas mapear todo el arreglo -+ Dentro de tu función de mapeo, necesitas usar un condicional para verificar si el valor actual es 0 o 1. ++ Dentro de tu función de mapeo, necesitas usar un condicional para verificar si el valor actual es `0` o `1`. -+ Si el valor actual es 1, imprime el string `wiki`. ++ Si el valor actual es `1`, imprime el string `wiki`. -+ Si el valor actual es 0, imprime el string `woko` \ No newline at end of file ++ Si el valor actual es `0`, imprime el string `woko` \ No newline at end of file diff --git a/exercises/20.6-Yes-and-no/README.md b/exercises/20.6-Yes-and-no/README.md index 25c81bac..949b9c14 100644 --- a/exercises/20.6-Yes-and-no/README.md +++ b/exercises/20.6-Yes-and-no/README.md @@ -8,7 +8,7 @@ ### Expected result: -```md +```js [ 'woko', 'wiki', 'woko', 'woko', 'wiki', 'wiki', 'wiki', 'woko', 'woko', 'wiki', 'woko', 'wiki', 'wiki', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'wiki', 'woko', 'woko', 'woko', 'woko', 'wiki' ] ``` @@ -16,8 +16,8 @@ + You need to map the entire array -+ Inside your mapping function you need to use a conditional to verify if the current value is 0 or 1. ++ Inside your mapping function you need to use a conditional to verify if the current value is `0` or `1`. -+ If the current value is 1 you print the string `wiki`. ++ If the current value is `1` you print the string `wiki`. -+ If the current value is 0 you print the string `woko`. ++ If the current value is `0` you print the string `woko`. diff --git a/exercises/21-Filter-an-array/README.es.md b/exercises/21-Filter-an-array/README.es.md index 01717463..3efecb1b 100644 --- a/exercises/21-Filter-an-array/README.es.md +++ b/exercises/21-Filter-an-array/README.es.md @@ -23,6 +23,7 @@ console.log(onlyOdds); 2. Usa la función `array.filter`. ## 💡 Pista: -Aquí hay un video de 2:29min explicando la función `array.filter`: + ++ Aquí hay un video de 2:29 min explicando la función `array.filter`: https://www.youtube.com/watch?v=0qsFDFC2oEE \ No newline at end of file diff --git a/exercises/21-Filter-an-array/README.md b/exercises/21-Filter-an-array/README.md index c45cb48d..96c49d5b 100644 --- a/exercises/21-Filter-an-array/README.md +++ b/exercises/21-Filter-an-array/README.md @@ -25,6 +25,6 @@ console.log(onlyOdds); ## 💡 Hint: -Here is a 2:29min video explaining `array.filter` function: ++ Here is a 2:29 min video explaining `array.filter` function: https://www.youtube.com/watch?v=0qsFDFC2oEE \ No newline at end of file diff --git a/exercises/21.2-Filter-done-tasks/README.es.md b/exercises/21.2-Filter-done-tasks/README.es.md index d95ebc6c..df330db1 100644 --- a/exercises/21.2-Filter-done-tasks/README.es.md +++ b/exercises/21.2-Filter-done-tasks/README.es.md @@ -6,7 +6,7 @@ ### Resultado esperado: -```md +```js [ { label: 'Eat my lunch', done: true }, { label: 'Finish my exercises', done: true }, { label: 'Read a book', done: true } ] diff --git a/exercises/21.2-Filter-done-tasks/README.md b/exercises/21.2-Filter-done-tasks/README.md index bcd5222c..4551abe0 100644 --- a/exercises/21.2-Filter-done-tasks/README.md +++ b/exercises/21.2-Filter-done-tasks/README.md @@ -6,7 +6,7 @@ ### Expected result: -```md +```js [ { label: 'Eat my lunch', done: true }, { label: 'Finish my exercises', done: true }, { label: 'Read a book', done: true } ] diff --git a/exercises/22-Matrix-Builder/README.es.md b/exercises/22-Matrix-Builder/README.es.md index fc805f4d..35c00e4a 100644 --- a/exercises/22-Matrix-Builder/README.es.md +++ b/exercises/22-Matrix-Builder/README.es.md @@ -10,7 +10,7 @@ Después de un código malicioso, creado principalmente por el Sr. Smith, la mat 2. Esta función debería devolver un arreglo con arreglos que representa la matriz. Ejemplo: 3 debería devolver: -```md +```js [ [0, 1, 1], [1, 0, 1], diff --git a/exercises/22-Matrix-Builder/README.md b/exercises/22-Matrix-Builder/README.md index af44062e..f0ee3082 100644 --- a/exercises/22-Matrix-Builder/README.md +++ b/exercises/22-Matrix-Builder/README.md @@ -11,7 +11,8 @@ This number represents the amount of rows and columns for the matrix. Example: 5 means that the matrix should be 5x5. 2. This function should return an array of arrays that represents the matrix. Example: 3 should return: -```md + +```js [ [0, 1, 1], [1, 0, 1], diff --git a/exercises/23-Parking-Lot/README.es.md b/exercises/23-Parking-Lot/README.es.md index 76dbd3b9..ce9e8c37 100644 --- a/exercises/23-Parking-Lot/README.es.md +++ b/exercises/23-Parking-Lot/README.es.md @@ -4,9 +4,9 @@ Estacionamiento (Parking) Podemos usar un arreglo bidimensional (matriz) para representar el estado actual de un estacionamiento como este: -![Parking Lot BreatheCode](https://storage.googleapis.com/replit/images/1558366147943_71c41e2a3f01564b5bdba6618797af79.pn) +![Parking Lot BreatheCode](../../.learn/assets/23.png) -```md +```js parking_state = [ [1,0,1,1,0,1], [2,0,1,1,0,1], @@ -15,17 +15,18 @@ parking_state = [ [1,0,1,1,0,2], [1,0,1,1,0,1], ] - +``` ## 📝 Instrucciones: 1. Crea una función `getParkingLotState()` que devuelva un objeto con `totalSlots`(cantidad de estacionamientos en total), `availableSlots` (estacionamientos disponibles) y `occupiedSlots` (estacionamientos ocupados) de esta forma: - +```js const state = { totalSlots: 12, availableSlots: 3, occupiedSlots: 9 } +``` ## 💡 Pista: diff --git a/exercises/23-Parking-Lot/README.md b/exercises/23-Parking-Lot/README.md index 9d07399a..c1ecd6ed 100644 --- a/exercises/23-Parking-Lot/README.md +++ b/exercises/23-Parking-Lot/README.md @@ -4,9 +4,9 @@ Parking Lot We can use a 2 dimensional array (matrix) to represent the current state of a parking lot like this: -![Parking Lot BreatheCode](https://storage.googleapis.com/replit/images/1558366147943_71c41e2a3f01564b5bdba6618797af79.pn) +![Parking Lot BreatheCode](../../.learn/assets/23.png) -```md +```js parking_state = [ [1,0,1,1,0,1], [2,0,1,1,0,1], diff --git a/exercises/24-Making-a-ul/README.es.md b/exercises/24-Making-a-ul/README.es.md index b0764cb0..1d2ef98d 100644 --- a/exercises/24-Making-a-ul/README.es.md +++ b/exercises/24-Making-a-ul/README.es.md @@ -4,6 +4,6 @@ 1. Rellena la función `generateLI` y `filterColors` para que el ejercicio imprima el siguiente HTML con solo los colores sexys. Así: -```html +```js ``` \ No newline at end of file diff --git a/exercises/24-Making-a-ul/README.md b/exercises/24-Making-a-ul/README.md index c1dc8cc3..8fa4e047 100644 --- a/exercises/24-Making-a-ul/README.md +++ b/exercises/24-Making-a-ul/README.md @@ -4,6 +4,6 @@ - Fill the `generateLI` and `filterColors` function to make the exercise print the following HTML with only the sexy colors. Like this: -```html +```js ``` \ No newline at end of file diff --git a/exercises/25-Techno-beat/README.es.md b/exercises/25-Techno-beat/README.es.md index 728fe04f..af134091 100644 --- a/exercises/25-Techno-beat/README.es.md +++ b/exercises/25-Techno-beat/README.es.md @@ -14,15 +14,15 @@ Estás trabajando con un DJ y él necesita un programa que pueda crear ritmos pa ### Restricciones: -1. Si encuentra sel número Uno (1) tres veces seguidas, TAMBIÉN debe AGREGARSE a la cadena "¡¡¡Break the base!!!" +1. Si encuentra sel número Uno (1) tres veces seguidas, TAMBIÉN debe AGREGARSE a la cadena `¡¡¡Break the base!!!` ### Resultado esperado de la función: -Un string que debe estar compuesto por Boom o Drop the base o !!!Break the base!!! +Un string que debe estar compuesto por Boom o Drop the base o `!!!Break the base!!!` ### Resultado esperado: -```md +```js Boom Boom Drop the base Drop the base Boom Boom Boom Boom Boom Drop the base Drop the base Drop the base !!!Break the base!!! Boom Boom Boom Boom Boom Boom diff --git a/exercises/25-Techno-beat/README.md b/exercises/25-Techno-beat/README.md index 6023588f..c28b9264 100644 --- a/exercises/25-Techno-beat/README.md +++ b/exercises/25-Techno-beat/README.md @@ -14,15 +14,15 @@ You are working with a DJ and he needs a program that can create a beats for his ### Constraints: -1. If you find the number One (1) three times in a row, should ALSO ADD to the string "!!!Break the base!!!" +1. If you find the number One (1) three times in a row, should ALSO ADD to the string `!!!Break the base!!!` ### Expected Function Output: -A string which should be comprise of Boom or Drop the base or !!!Break the base!!! +A string which should be comprise of Boom or Drop the base or `!!!Break the base!!!` ### Excepted Output: -```md +```js Boom Boom Drop the base Drop the base Boom Boom Boom Boom Boom Drop the base Drop the base Drop the base !!!Break the base!!! Boom Boom Boom Boom Boom Boom