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

Skip to content

Commit f48053e

Browse files
authored
Merge pull request HackYourFuture#22 from mkruijt/planningClass12
Planning class12
2 parents fa0d024 + ecb4b15 commit f48053e

File tree

5 files changed

+25
-51
lines changed

5 files changed

+25
-51
lines changed

Week3/MAKEME.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Topics discussed in class this week:
1010
• Functions
1111
```
1212

13-
>[Here](/Week2/README.md) you find the readings you have to complete before the third lecture.
13+
>[Here](/Week3/README.md) you find the readings you have to complete before the third lecture.
1414
1515
## Step 0: Feedback
1616

@@ -126,11 +126,6 @@ let favoriteAnimals = ['blowfish', 'capricorn', 'giraffe'];
126126
> Don't cheat! Seriously - try it first.
127127

128128

129-
Check out this [Fiddle](http://jsfiddle.net/jimschubert/85M4z/). You need to open your browser’s Developer Tools to see the console output. Press the Run button in the upper right corner to run the code.
130-
131-
More insights from this [Stack Overflow question](http://stackoverflow.com/questions/22395357/how-to-compare-two-arrays-are-equal-using-javascript).
132-
133-
134129
16. Take a look at the following code:
135130

136131
```js
@@ -171,7 +166,7 @@ Please make sure you REALLY understand the exercises below:
171166
172167
_Deadline Sunday morning_
173168
174-
Go trough the reading material in the [README.md](/Week2/README.md) to prepare for your next class
169+
Go trough the reading material in the [README.md](/Week3/README.md) to prepare for your next class
175170
176171
```
177172
How to hand in your homework:

Week5/MAKEME.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ let tasks = monday.concat(tuesday);
9898
- Output a formatted Euro amount.
9999
- Don't forget to use `=>`
100100

101-
102101
## Step 3: ROVER
103102

104103
Finish up to chapter 7: JSON on [roverjs.com](http://roverjs.com/)!

Week6/MAKEME.md

Lines changed: 20 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,19 @@ Topics discussed this week:
99

1010
>[Here](/Week6/README.md) you find the readings you have to complete before the seventh lecture.
1111
12-
## Step 1: Feedback
12+
## Step 1: Git Homework
13+
[Go through the Git repository](https://github.com/HackYourFuture/Git/blob/master/Lecture-3.md). For handing in homework and follow the Forking workflow that is described in our lecture-3.md file of HackYourFuture’s Git repository (there is also a video that explains this).
1314

14-
_Deadline Monday_
15+
16+
## Step 2: Feedback
1517

1618
Give feedback on `step 2` of `week 5` to one of your fellow students (do this by creating issues in Github).
1719

18-
## Step 2: Git Homework
1920

20-
[Make these assignments](https://github.com/HackYourFuture/Git/blob/master/Lecture-3.md). For handing in homework follow the Forking workflow that is described in our lecture-3.md file of HackYourFuture’s Git repository (there is also a video that explains this).
21+
_Deadline Monday_
22+
23+
Give feedback on `step 2` of `week 5` to one of your fellow students (do this by creating a pull request suggesting changes/improvements in Github).
24+
Read through the git repository linked above to see a recap of what was covered in class this week
2125

2226
## Step 3: Read
2327

@@ -34,19 +38,8 @@ Give feedback on `step 2` of `week 5` to one of your fellow students (do this by
3438

3539
_Deadline Wednesday_
3640

37-
1\.We saw that we can pass functions as arguments to other functions. Your task is to write a function that takes another function as an argument and runs it.
3841

39-
function foo(func) {
40-
// What to do here?
41-
}
42-
43-
function bar() {
44-
console.log('Hello, I am bar!');
45-
}
46-
47-
foo(bar);
48-
49-
2\.We learned a little bit about callbacks in JS. A callback is simply a function passed to another function that gets executed (run) after a potentially long running operation has completed. There is another function called `setTimeout` that will wait a specified period of time and then execute a function. For example:
42+
1\. We learned a little bit about callbacks in JS. A callback is simply a function passed to another function that gets executed (run) after a potentially long running operation has completed. There is another function called `setTimeout` that will wait a specified period of time and then execute a function. For example:
5043

5144
```js
5245
function doIt() {
@@ -65,10 +58,12 @@ You must write a function that takes 4 arguments.
6558

6659
The function should generate an array containing values from start value to end value (inclusive).
6760

61+
6862
Then the function should iterate over the array and call the first callback if the array value is divisible by 3
6963

7064
The function should call the second callback if the array value is divisible by 5
7165

66+
7267
Both functions should be called if the array value is divisible by both 3 and 5
7368

7469
```js
@@ -83,26 +78,25 @@ threeFive(10, 15, sayThree, sayFive);
8378
// and call sayFive, sayThree, sayThree, sayFive - please make sure you see why these calls are made before you start coding
8479
```
8580

86-
87-
3\. Please solve this problem using:
81+
2\. Please solve this problem using:
8882
https://www.freecodecamp.com/challenges/repeat-a-string-repeat-a-string
89-
3\.1 A for loop.
90-
3\.2 A while loop.
91-
3\.3 A do loop.
83+
2\.1 A for loop.
84+
2\.2 A while loop.
85+
2\.3 A do loop.
9286

93-
4\. Some practice with objects
87+
3\. Some practice with objects
9488
https://www.freecodecamp.com/challenges/construct-javascript-objects-with-functions
9589

96-
5\. Nested loops
90+
4\. Nested loops
9791
https://www.freecodecamp.com/challenges/nesting-for-loops
9892

99-
6\. We did some work with arrays - `var arr = [1,2,3]`
93+
5\. We did some work with arrays - `var arr = [1,2,3]`
10094
We can also nest arrays inside arrays like this `var arr2d = [[1,2], [3,4], [5,6]]` (for math people you can think of this as a matrix)
10195
How would you print all the items of an array with 3 dimensions?
10296
How about with K dimensions?
10397
What if you didn't know how deep the array was nested? (You don't have to write code for this but think about it)
10498

105-
7\. Here are two functions that look like they do the something similar but they print different results. Please explain what's going on here.
99+
6\. Here are two functions that look like they do the something similar but they print different results. Please explain what's going on here.
106100

107101
```js
108102
let x = 9;
@@ -125,22 +119,7 @@ console.log(y);
125119
If you are confused please run the code and then consult the Google for "javaScript pass by value pass by reference"
126120

127121

128-
## Step 5: Scope and Closures
129-
130-
> Let's continue to learn a little more about scope and Closures.
131-
132-
133-
1. Write a function that would allow you to do this:
134-
```js
135-
let addSix = createBase(6);
136-
addSix(10); // returns 16
137-
addSix(21); // returns 27
138-
```
139-
140-
__Bonus__: Write a function takes this array `['a', 'b', 'c', 'd', 'a', 'e', 'f', 'c']` and returns an array which only has unique values in it (so it removes the duplicate ones). Make it a 'smart' algorithm that could do it for every array (only strings/number). Try to make it as fast as possible!
141-
142-
143-
## Step 6: Read before next lecture
122+
## Step 4: Read before next lecture
144123

145124
_Deadline Sunday morning_
146125

Week7/MAKEME.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ _Deadline Saturday_
3434

3535
Let's practice working with Objects and Arrays. Go to FreeCodeCamp and complete all challenges under "Object Oriented and Functional Programming" and the _first four challenges_ under "Basic Algorithm Scripting", up until 'Find the longest word in a string.'
3636

37+
3738
## Step 5: Async challenge
3839

3940
1. Rewrite the code below to Async:
@@ -64,7 +65,6 @@ data = data.map(function (x) { return x * 8; });
6465
writeDataToFile(data);
6566
```
6667

67-
6868
## Step 6: Some more JavaScript
6969

7070
_Deadline Saturday_

Week9/MAKEME.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Topics discussed this week:
77
```
88

99
## Step 1: Read
10-
1110
- If you need to refresh your memory on es6 classes: [es6-classes-in-depth](https://ponyfoo.com/articles/es6-classes-in-depth)
1211
- Also read this article on scopes & closures: [explaining-javascript-scope-and-closures](https://robertnyman.com/2008/10/09/explaining-javascript-scope-and-closures/)
1312

@@ -27,10 +26,12 @@ So please:
2726
- Follow the instructions in the REAME.md of the above repository
2827
- To hand in your homework you make a PR to the existing repository
2928

29+
3030
## Step 4: Read before next lecture
3131

3232
_Deadline Sunday morning_
3333

3434
Go trough the reading material in the [README.md](/Week9/README.md) to prepare for your next class
3535

3636
> To hand in your homework, make a pull request to the original repository you forked from. Remember, our master branches are protected, you cannot push to a directly cloned repository you first have to make a fork to your own Github.
37+

0 commit comments

Comments
 (0)