Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f6d0e1

Browse files
authored
Merge branch 'master' into master
2 parents 544517e + f52d2a9 commit 1f6d0e1

File tree

1 file changed

+30
-10
lines changed

1 file changed

+30
-10
lines changed

Week3/MAKEME.md

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,34 @@ _Deadline Thursday_
4848
*IMPORTANT NOTE*
4949
In each assignment write at least two `console.log` statements to verify if your code works correctly. In other words proof that you code works as expected. If you need inspiration look at the steps defined in the assignments from last week.
5050

51+
1\. **Strings!**
52+
1\.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
53+
1\.2 Add the string to your file and console.log it.
54+
1\.4 Console.log the length of `myString`.
55+
1\.5 The comma's make that the sentence is quite hard to read. Find a way to remove the comma's from the sting and replace them with a spaces
56+
1\.6 Console.log `myString` to see if you succeeded.
57+
58+
2\. **Arrays!**
59+
consider the following array:
60+
61+
```js
62+
let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
63+
```
64+
65+
2\.1 Add a statement that adds Mauro's favorite animal (turtle) to the existing array
66+
2\.2 Log your new array!
67+
2\.3 Now add Jim's favorite animal to the array, its a 'meerkat', but make sure it will be placed after 'blowfish' and before 'capricorn'.
68+
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
69+
2\.5 Log your new new array!
70+
2\.6 Log the length of the array, add a message: "The array has a length of: "(here you should show the length of the array)
71+
2\.7 Jason does not like giraffes, delete this animal from the array
72+
2\.8 Again log your new array.
73+
2\.9 Now if unlike Jim, you don't like meerkats and you want to delete it from the array, but you don't know the position or the `index` of the item in the array, how can you find it?
74+
2\.10 Log the index of meerkat to the console. Add a message so it says: "The item you are looking for is at index: " (here you should show the index of the item)
75+
76+
## Step 5: Custom DOM manipulation challenge :mortar_board:
77+
78+
5179
1. Create a function that takes 3 arguments and returns the sum of the three arguments.
5280

5381
2. Create a function named `colorCar` that receives a color, and prints out, "a red car" for example.
@@ -140,7 +168,7 @@ In each assignment write at least two `console.log` statements to verify if your
140168
141169
> ‘Coerce' means to try to change - so coercing `var x = '6'` to number means trying to change the type to number temporarily.
142170

143-
## Step 5: **Finish basic freeCodeCamp challenges:**
171+
## Step 6: **Finish basic freeCodeCamp challenges:**
144172

145173
_Deadline Saturday_
146174

@@ -167,12 +195,4 @@ How to hand in your homework:
167195
• Place the link to your repository folder in Trello.
168196
```
169197
170-
:star: Additional resources and review: [here](/Week2/REVIEW.md):star:
171-
172-
173-
174-
175-
176-
177-
178-
198+
:star: Additional resources and review: [here](/Week2/REVIEW.md):star:

0 commit comments

Comments
 (0)