-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from josemoracard/jose3-01-hello_world
exercises 01-hello-world to 07.1-finding-waldo
- Loading branch information
Showing
63 changed files
with
208 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
//declaring the array | ||
// Declaring the array | ||
let myArray = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday']; | ||
|
||
//1. print the item here | ||
// 1. print the 3rd item here | ||
|
||
//2. change 'thursday'a value here to null | ||
// 2. change the 'thursday' value to null here | ||
|
||
//3. print the position of step 2 | ||
// 3. print the position of step 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
//declaring the array | ||
// Declaring the array | ||
|
||
//. 0. 1. 2. 3. 4. 5. 6 | ||
//. positions: 0 1 2 3 4 5 6 | ||
let myArray = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday']; | ||
|
||
|
||
//1. print the item here | ||
console.log(myArray[2]) | ||
// 1. print the 3rd item here | ||
console.log(myArray[2]); | ||
|
||
//2. change 'thursday'a value here to null | ||
// 2. change 'thursday' value to null here | ||
myArray[4] = null; | ||
|
||
//3. print the position of step 2 | ||
console.log(myArray[4]) | ||
// 3. print the position of step 2 | ||
console.log(myArray[4]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# `02.2` Retrieve Items | ||
|
||
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. | ||
La única forma de acceder a un elemento particular en un arreglo es usando el índice. El **í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 | ||
let myValue = array[index]; | ||
``` | ||
|
||
## 📝 Instrucciones | ||
## 📝 Instrucciones: | ||
|
||
1. Imprima en la consola el 1er elemento de array o arreglo. | ||
1. Imprima en la consola el 1er elemento del array. | ||
|
||
2. Imprima en la consola el 4to elemento de la arreglo o array. | ||
2. Imprima en la consola el 4to elemento del array. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
let arr = [4,5,734,43,45,100,4,56,23,67,23,58,45,3,100,4,56,23]; | ||
|
||
//your code here | ||
// your code here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
|
||
// 0.1. 2. 3. 4. 5. 6.7. 8. 9. 10..... | ||
// 0.1. 2. 3. 4. 5. 6. 7. 8. 9. 10..... | ||
let arr = [4,5,734,43,45,100,4,56,23,67,23,58,45,3,100,4,56,23]; | ||
|
||
//your code here | ||
|
||
let aux = arr[0]; | ||
// your code here | ||
console.log(arr[0]); | ||
|
||
|
||
console.log(arr[3]); | ||
console.log(arr[3]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ function generateRandomArray() | |
} | ||
let myStupidArray = generateRandomArray(); | ||
|
||
//Your code here | ||
// Your code here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//change the conditions of the for loop | ||
for(let number = 0; number < 10; number++){ | ||
//print the number | ||
// Change the conditions of the for loop | ||
for(let number = 0; number < 10; number++) { | ||
// Print the number | ||
} |
Oops, something went wrong.