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/README.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,12 @@ Please watch the following parts of the course, [Programming Foundations Fundame
35
35
- Check out this video of Daan to see how we use Git Workflow to hand in Homework (from now on): https://www.youtube.com/watch?v=-o0yomUVVpU&index=2&list=PLVYDhqbgYpYUGxRdtQdYVE5Q8h3bt6SIA
36
36
37
37
### Review
38
-
- Go through the review of [week 1](/Week1/REVIEW.md)
39
-
- Go through the review of [week 2](/Week2/REVIEW.md)
Copy file name to clipboardExpand all lines: Week3/MAKEME.md
+33-19Lines changed: 33 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -16,28 +16,43 @@ Topics discussed in class this week:
16
16
17
17
_Deadline Monday_
18
18
19
-
Provide feedback to step 1 and step 3 of the homework of last week to one of your fellow students. You will be assigned to one of the assignments by the class lead of this week.
19
+
Provide feedback to the homework of last week to one of your fellow students. You will be assigned to one of the assignments by the class lead of this week.
20
20
21
21
## Step 1: Recap/Read
22
22
23
23
- Have a look at [The Secret Life of JavaScript Primitives](https://javascriptweblog.wordpress.com/2010/09/27/the-secret-life-of-javascript-primitives/)
24
-
- Go through the review of [last week](https://github.com/HackYourFuture/JavaScript/blob/master/Week1/REVIEW.md)
25
-
- Go through the review of [this week](https://github.com/HackYourFuture/JavaScript/blob/master/Week2/REVIEW.md)
-[Advanced data types (Objects)](../fundamentals/objects.md)
34
+
- Conditions
35
+
-[Statements vs Expressions](../fundamentals/statements_expressions.md)
36
+
- Loops (for/while)
37
+
-[Functions](../fundamentals/functions.md)
38
+
- Scope
39
+
27
40
## Step 2: Watch
28
41
29
-
1. If you haven't done already, watch: [What is programming](https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro) Just watch the 2 min video, you do not have to do the entire JavaScript course (It could be useful later on though).
30
-
2. Please watch the following parts of the course, [Programming Foundations Fundamentals](https://www.lynda.com/Programming-Foundations-tutorials/Welcome/83603/90426-4.html) on Lynda.com (if you don't have access to Lynda yet ask Gijs):
31
-
<br>4. Writing Conditional Code
32
-
<br>5. Modular Code
33
-
<br>6. Iteration: Writing Loops
34
-
<br>7. More About Strings
35
-
<br>8. Collections
36
-
<br>11. When Things Go Wrong
42
+
1. If you haven't done already, watch: [What is programming](https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro)
43
+
Just watch the 2 min video, you do not have to do the entire JavaScript course (It could be useful later on though).
44
+
45
+
2. Please watch the following parts of the course, [Programming Foundations Fundamentals](https://www.lynda.com/Programming-Foundations-tutorials/Welcome/83603/90426-4.html) on Lynda.com (if you don't have access to Lynda yet ask Gijs):
46
+
<br>**4. Writing Conditional Code**
47
+
<br>**5. Modular Code**
48
+
<br>**6. Iteration: Writing Loops**
49
+
<br>**7. More About Strings**
50
+
<br>**8. Collections**
51
+
<br>**11. When Things Go Wrong**
37
52
38
53
## Step 3: Rover the Robot
39
54
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!
55
+
Go and try out this cool game: [roverjs.com](http://roverjs.com), written by one of our HYF teachers, Joost Lubach. There are different levels, see how far you can get!
41
56
42
57
## Step 4: String and Array challenges
43
58
@@ -52,17 +67,18 @@ In each assignment write at least two `console.log` statements to verify if your
52
67
1\.1 Let's consider the following string: `let myString = "hello,this,is,a,difficult,to,read,sentence"`
53
68
1\.2 Add the string to your file and console.log it.
54
69
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
70
+
1\.5 The commas 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
71
1\.6 Console.log `myString` to see if you succeeded.
57
72
58
-
2\.**Arrays!**
59
-
consider the following array:
73
+
2\.**Arrays!**
74
+
75
+
Consider the following array:
60
76
61
77
```js
62
78
let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
63
79
```
64
80
65
-
2\.1 Add a statement that adds Mauro's favorite animal (turtle) to the existing array
81
+
2\.1 Add a statement that adds Mauro's favorite animal ('turtle') to the existing array
66
82
2\.2 Log your new array!
67
83
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
84
2\.4 Write a console.log statement that explains in words _you think_ the new value of the array is.
@@ -103,7 +119,7 @@ let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
103
119
104
120
10. Use the list of vehicles to write an advertisement. So that it prints something like: `"Amazing Joe's Garage, we service cars, motorbikes, caravans and bikes."`. (Hint: use a `for` loop.)
105
121
106
-
> Hint, the output should be correct English with all the punctuation in place (that's the challenge). So plurals for the vehicle types, commas followed by a single space, the word and to replace the final comma and closed off by a period.
122
+
> Hint, the output should be correct English with all the punctuation in place (that's the challenge). So plurals for the vehicle types, commas followed by a single space, the word and to replace the final comma and closed off by a period.
107
123
108
124
11. What if you add one more vehicle to the list, can you have that added to the advertisement without changing the code for question 10?
109
125
@@ -180,5 +196,3 @@ How to hand in your homework:
180
196
• Your hyf-javascript1/week2 should now contain all your homework files.
181
197
• Place the link to your repository folder in Trello.
182
198
```
183
-
184
-
:star: Additional resources and review: [here](/Week2/REVIEW.md):star:
0 commit comments