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: Week2/MAKEME.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Provide feedback on the HTML-CSS assignments (week 3) of one of your fellow stud
31
31
32
32
_Deadline Thursday_
33
33
34
-
> 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. All these
34
+
> 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.
35
35
36
36
1\. Write a `console.log` statement saying "Hello World!" for each language that you know.
Copy file name to clipboardExpand all lines: Week3/MAKEME.md
+32-3Lines changed: 32 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,36 @@ Provide feedback to step 1 and step 3 of the homework of last week to one of you
39
39
40
40
Go and try out this cool game: http://hyf-robot.herokuapp.com/index.html, there are different levels, see how far you can get!
41
41
42
-
## Step 4: JavaScript
42
+
## Step 4: String and Array challenges
43
+
44
+
_Deadline Wednesday_
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
43
72
44
73
_Deadline Thursday_
45
74
@@ -140,7 +169,7 @@ In each assignment write at least two `console.log` statements to verify if your
140
169
141
170
> ‘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