Skip to content

Commit 739af90

Browse files
committed
Completed through 4GeeksAcademy#13
1 parent 0c86052 commit 739af90

File tree

51 files changed

+278
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+278
-31
lines changed

.learn/resets/01-Hello_World/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// console log hello world here
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Declaring the array
2+
let myArray = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday'];
3+
4+
// 1. print the 3rd item here
5+
6+
// 2. change the 'thursday' value to null here
7+
8+
// 3. print the position of step 2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
let arr = [4,5,734,43,45,100,4,56,23,67,23,58,45,3,100,4,56,23];
2+
3+
// your code here
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function generateRandomArray()
2+
{
3+
let auxArray = [];
4+
let randomLength = Math.floor(Math.random()*100);
5+
for(let i = 0; i < randomLength; i++) auxArray.push(Math.floor(Math.random()*100));
6+
return auxArray;
7+
}
8+
let myStupidArray = generateRandomArray();
9+
10+
// Your code here
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Change the conditions of the for loop
2+
for(let number = 0; number < 10; number++) {
3+
// Print the number
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Your code here
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
let arr = [4,5,734,43,45];
2+
3+
// Your code here, use the push() function and the 2 Math functions
4+
5+
console.log(arr);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
let arr = [4,5,734,43,45];
2+
3+
//*****************
4+
// Your code here
5+
// you need to loop 10 times, for example, using a for loop
6+
//*****************

.learn/resets/05.1-Loop_Array/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
let myArray = [232,32,1,4,55,4,3,32,3,24,5,5,5,34,2,3,5,5365743,52,34,3,55,33,435,4,6,54,63,45,4,67,56,47,1,34,54,32,54,1,78,98,0,9,8,98,76,7,54,2,3,42,456,4,3321,5];
2+
3+
// wrap this console.log within a loop and replace 0 with i
4+
console.log(myArray[0]);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
let mySampleArray = [3423,5,4,47889,654,8,867543,23,48,56432,55,23,25,12];
2+
3+
4+
for(let i = 0; i < mySampleArray.length; i = i + 1)
5+
{
6+
console.log(mySampleArray[i]);
7+
}

0 commit comments

Comments
 (0)