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: Week4/MAKEME.md
+9-36Lines changed: 9 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,15 @@
3
3
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week4/README.md) you find the readings you have to complete before the fifth lecture.
4
4
5
5
## Step 0:
6
-
Give yourself (or your neighbour) a little tap on the shoulder, you've made it to JS2! :muscle:
6
+
Give yourself (or your neighbor) a little tap on the shoulder, you've made it to JS2! :muscle:
7
7
8
-
#### GIT
9
-
Go here to see the [Git Homework](https://github.com/HackYourFuture/Git/blob/master/Lecture-1.md)
8
+
## Step 1: Feedback
10
9
11
-
### Step 4: Git branching homework
10
+
Give one of your fellow students in Github feedback about their homework of the previous week: create an issue in their repo, telling them what they did great and what they can improve.
12
11
13
-
1) Use the unmeshvrije/MyFirst repository (the one you cloned) for this homework.
12
+
### Step 2: Git branching homework
13
+
14
+
1) Use the `unmeshvrije/MyFirst` repository (the one you cloned) for this homework.
14
15
15
16
2) Make a branch.
16
17
@@ -22,41 +23,13 @@ Go here to see the [Git Homework](https://github.com/HackYourFuture/Git/blob/mas
22
23
23
24
6) Then git add, commit and push them in a remote branch.
24
25
25
-
**Do not merge the changes to master branch.
26
+
**Do not merge the changes to master branch.**
26
27
27
-
**Do not make any changes to master branch.
28
+
**Do not make any changes to master branch.**
28
29
29
-
## Step 1: Some Challenges
30
+
## Step 3: Some Challenges
30
31
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.'
31
32
32
-
## Step 3: Feedback
33
-
34
-
Give one of you fellow students in Github feedback about their code of step two, create an issue in their repo, telling them what they did great and what they can improve.
35
-
36
-
<!-- ### :boom: Bonus homework :boom:
37
-
38
-
Replace this function by a generalised version that takes the name of the property (`propName`) to sort on and a number `order` (allowed values 1 or -1, default value = 1) to indicate respectively ascending or descending sort order:
39
-
40
-
```
41
-
function sortMovies(movies, propName, order)
42
-
```
43
-
44
-
Hint: remember from your high school math that:
45
-
46
-
- `1 x -1 = -1`, and
47
-
- `-1 x -1 = 1`
48
-
49
-
Ensure that the new function produces the same results as the existing `sortByImdbRating` function when it is called like this:
50
-
51
-
```js
52
-
movies = sortMovies(movies, 'imdbRating', -1);
53
-
```
54
-
55
-
Notes:
56
-
57
-
1. Do not bother to make this work for the `Ratings` property which refers to an object rather than a simple value.
58
-
2. It is not necessary to convert property values containing dates or numbers formatted with embedded commas to facilitate sorting for this challenge (but you're welcome to try). You can leave the value 'as is'. -->
0 commit comments