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
+5-11Lines changed: 5 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,7 @@ _Deadline Monday_
15
15
16
16
Give feedback on `step 2` of `week 5` to one of your fellow students (do this by creating issues in Github).
17
17
18
-
## ~~Step 2: Git Homework~~
19
-
20
-
~~_Deadline Saturday_~~
21
-
22
-
~~[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).~~
@@ -32,7 +26,7 @@ Give feedback on `step 2` of `week 5` to one of your fellow students (do this by
32
26
- More about [closures](https://www.reddit.com/r/learnjavascript/comments/1v6n8p/closure_explain_likei_am_in_high_school/?st=ixsp0mbe&sh=5526d150)
33
27
- A VERY popular [StackOverflow article](http://stackoverflow.com/questions/111102/how-do-javascript-closures-work)
34
28
35
-
## Step 4: JavaScript
29
+
## Step 3: JavaScript
36
30
37
31
_Deadline Wednesday_
38
32
@@ -45,7 +39,7 @@ function doIt() {
45
39
setTimeout(doIt, 5000)
46
40
```
47
41
48
-
>f you run the above code it will wait 5 seconds and print `I am done`. Please read something about setTimeout on MDN. The first argument to the `setTimeout` call is the callback (`doIt`)
42
+
>if you run the above code it will wait 5 seconds and print `I am done`. Please read something about setTimeout on MDN. The first argument to the `setTimeout` call is the callback (`doIt`)
49
43
50
44
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.
51
45
@@ -133,7 +127,7 @@ console.log(y);
133
127
If you are confused please run the code and then consult the Google for "javaScript pass by value pass by reference"
134
128
135
129
136
-
## Step 5: Scope and Closures
130
+
## Step 4: Scope and Closures
137
131
138
132
_Deadline Saturday_
139
133
@@ -150,7 +144,7 @@ addSix(21); // returns 27
150
144
__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!
0 commit comments