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
+3-32Lines changed: 3 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -43,35 +43,6 @@ Go and try out this cool game: http://hyf-robot.herokuapp.com/index.html, there
43
43
44
44
_Deadline Wednesday_
45
45
46
-
1\.**Strings!**
47
-
1\.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
48
-
1\.2 Add the string to your file and console.log it.
49
-
1\.4 Console.log the length of `myString`.
50
-
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
51
-
1\.6 Console.log `myString` to see if you succeeded.
52
-
53
-
2\.**Arrays!**
54
-
consider the following array:
55
-
56
-
```js
57
-
let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
58
-
```
59
-
60
-
2\.1 Add a statement that adds Mauro's favorite animal (turtle) to the existing array
61
-
2\.2 Log your new array!
62
-
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'.
63
-
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
64
-
2\.5 Log your new new array!
65
-
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)
66
-
2\.7 Jason does not like giraffes, delete this animal from the array
67
-
2\.8 Again log your new array.
68
-
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?
69
-
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)
70
-
71
-
## Step 5: JavaScript
72
-
73
-
_Deadline Thursday_
74
-
75
46
> For all the following exercises create a new .js file. Try to find a proper name for each file or make a small comment about what it does inside for future reference
76
47
77
48
*IMPORTANT NOTE*
@@ -102,7 +73,7 @@ let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
102
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?
103
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)
104
75
105
-
## Step 5: Custom DOM manipulation challenge :mortar_board:
76
+
## Step 6: Custom DOM manipulation challenge :mortar_board:
106
77
107
78
108
79
1. Create a function that takes 3 arguments and returns the sum of the three arguments.
@@ -197,7 +168,7 @@ let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
197
168
198
169
> ‘Coerce' means to try to change - so coercing `var x = '6'` to number means trying to change the type to number temporarily.
0 commit comments