You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Week3/MAKEME.md
+22-19Lines changed: 22 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -37,28 +37,31 @@ Your Github should contain two repositories called hyf-javascript1 and hyf-comma
37
37
38
38
_Deadline Wednesday_
39
39
40
-
1\. Strings!
41
-
1\.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
42
-
1\.2 Add the string to your file and console.log it.
43
-
1\.3 Console.log the length of `myString`.
44
-
1\.4 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
45
-
1\.5 Console.log `myString` to see if you succeeded.
46
-
47
-
2\. Arrays!
48
-
consider the following array:
40
+
1\.**Strings!**
41
+
1\.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
42
+
1\.2 Add the string to your file and console.log it.
43
+
1\.4 Console.log the length of `myString`.
44
+
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
45
+
1\.6 Console.log `myString` to see if you succeeded.
46
+
47
+
2\.**Arrays!**
48
+
consider the following array:
49
+
49
50
```js
50
51
let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
51
52
```
52
-
2\.1 Add a statement that adds Mauro's favorite animal (turtle) to the existing array
53
-
2\.2 Log your new array!
54
-
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'.
55
-
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
56
-
2\.5 Log your new new array!
57
-
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)
58
-
2\.7 Jason does not like giraffes, delete this animal from the array
59
-
2\.8 Again log your new array.
60
-
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?
61
-
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)
53
+
54
+
2\.1 Add a statement that adds Mauro's favorite animal (turtle) to the existing array
55
+
2\.2 Log your new array!
56
+
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'.
57
+
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
58
+
2\.5 Log your new new array!
59
+
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)
60
+
2\.7 Jason does not like giraffes, delete this animal from the array
61
+
2\.8 Again log your new array.
62
+
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?
63
+
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)
64
+
62
65
63
66
## Step 4: Custom DOM manipulation challenge :mortar_board:
0 commit comments