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: Week1/MAKEME.md
+39-75Lines changed: 39 additions & 75 deletions
Original file line number
Diff line number
Diff line change
@@ -72,21 +72,16 @@ console.log('I'm awesome');
72
72
```
73
73
2\.1 Copy the code in your `.js` file and run it. You will see that you will get a SyntaxError. Find a solution for this error, Hint read the error message carefully, it also gives an indication of where the problem is.
74
74
75
-
3\. Declare a variable `x` and initialize it with an integer.
76
-
77
-
3\.1 First, _declare_ your variable `x`.
78
-
75
+
3\. Declare a variable `x` and initialize it with an integer.
76
+
3\.1 First, _declare_ your variable `x`.
79
77
3\.2 Add a console.log statement that explains that explains in words what _you think_ the value of `x` is, like in this example:
80
78
```js
81
79
// TODO -> here you initialize your variable
82
80
console.log('the value of my variable x will be: whateverYouThinkItWillLog');
83
81
```
84
-
3\.3 Add a console.log statement that logs the value of `x`
85
-
86
-
3\.4 Now _initialize_ your variable `x` with an integer
87
-
88
-
3\.5 Now add a console.log statement that explains what _you think_ the value of `x` is.
89
-
82
+
3\.3 Add a console.log statement that logs the value of `x`.
83
+
3\.4 Now _initialize_ your variable `x` with an integer.
84
+
3\.5 Now add a console.log statement that explains what _you think_ the value of `x` is.
90
85
3\.6 Add a console.log statement that logs the value of `x`.
91
86
Steps to be taken:
92
87
@@ -100,16 +95,11 @@ console.log('I'm awesome');
100
95
```
101
96
102
97
4\. Declare a variable `y` and assign a string to it.
103
-
104
-
4\.1 Write a console.log statement in which you explain in words what _you think_ the value of the string is
105
-
106
-
4\.2 Now console.log the variable `y`.
107
-
108
-
4\.3 Now assign a new string to the variable `y`
109
-
110
-
4\.4 Just like you did before write a console.log statement that explains in words what you think will be logged to the console.
111
-
112
-
4\.5 Now console.log `y` again.
98
+
4\.1 Write a console.log statement in which you explain in words what _you think_ the value of the string is.
99
+
4\.2 Now console.log the variable `y`.
100
+
4\.3 Now assign a new string to the variable `y`.
101
+
4\.4 Just like you did before write a console.log statement that explains in words what you think will be logged to the console.
102
+
4\.5 Now console.log `y` again.
113
103
```js
114
104
// TODO -> here you declare AND assign your string
115
105
console.log('the value of my string will be: whateverYouThinkItWillLog');
@@ -120,61 +110,39 @@ console.log('I'm awesome');
120
110
```
121
111
122
112
5\. How do you round the number 7.25, to the nearest integer?
123
-
124
-
5\.1 Declare a variable `z` and assign the number 7.25 to it.
125
-
126
-
5\.2 Console.log `z`.
127
-
128
-
5\.3 Declare another variable `a` that has the value of z but rounded to the nearest integer.
129
-
130
-
5\.4 Console.log `a`
131
-
132
-
5\.5 So now we have `z` and `a` find a way to compare the two values and store the highest of the two in a new variable.
133
-
134
-
5\.6 Console.log the highest value.
113
+
5\.1 Declare a variable `z` and assign the number 7.25 to it.
114
+
5\.2 Console.log `z`.
115
+
5\.3 Declare another variable `a` that has the value of z but rounded to the nearest integer.
116
+
5\.4 Console.log `a`.
117
+
5\.5 So now we have `z` and `a` find a way to compare the two values and store the highest of the two in a new variable.
118
+
5\.6 Console.log the highest value.
135
119
136
120
6\. Arrays!
137
-
138
-
6\.1 Declare an empty array (you can decide on how to call it yourself, but read on a bit here and see if you can find a good name that exactly describes what this variable will hold).
139
-
140
-
6\.2 Write a console.log statement that explains in words what you think the value of the array is.
141
-
142
-
6\.3 Console.log your array.
143
-
144
-
6\.4 Create an array that has your favorite animals inside
145
-
146
-
6\.5 Log your array
147
-
148
-
6\.6 Add a statement that adds Daan's favorite animal (baby pig) to the *existing array*
149
-
150
-
6\.7 Log your new array!
151
-
152
-
7\. More strings
153
-
154
-
7\.1 Let's consider the following string: `let myString = "this,is,a,test"`.
155
-
156
-
7\.2 Add the string to your file and console.log it.
157
-
158
-
7\.3 Find a way to get the length of `myString`.
159
-
160
-
7\.4 Console.log the length of `myString`.
121
+
6\.1 Declare an empty array (you can decide on how to call it yourself, but read on a bit here and see if you can find a good name that exactly describes what this variable will hold).
122
+
6\.2 Write a console.log statement that explains in words what you think the value of the array is.
123
+
6\.3 Console.log your array.
124
+
6\.4 Create an array that has your favorite animals inside.
125
+
6\.5 Log your array.
126
+
6\.6 Add a statement that adds Daan's favorite animal (baby pig) to the *existing array*.
127
+
6\.7 Log your new array!
128
+
129
+
7\. More strings
130
+
7\.1 Let's consider the following string: `let myString = "this,is,a,test"`.
131
+
7\.2 Add the string to your file and console.log it.
132
+
7\.3 Find a way to get the length of `myString`.
133
+
7\.4 Console.log the length of `myString`.
161
134
162
135
8\. Write a program that checks the types of two variables and prints out `SAME TYPE` if they are the same type.
163
-
164
-
8\.1 First declare at least four variables and assign them different data types.
165
-
166
-
8\.2 For each variable write a `console.log` statement that logs the value
136
+
8\.1 First declare at least four variables and assign them different data types.
137
+
8\.2 For each variable write a `console.log` statement that logs the value
167
138
```js
168
139
let foo =3;
169
140
console.log('The value of my variable foo is: '+ foo);
170
141
```
171
-
8\.3 Now write a console.log statement wherein you first explain in words what you think the _type_ of your variables is.
172
-
173
-
8\.4 Now use `typeof` to log the actual _type_ of your variables.
174
-
175
-
8\.5 Now compare the types of your different variables with one another.
176
-
177
-
8\.6 Make sure to also show a message when the variables you are comparing are not the same type.
142
+
8\.3 Now write a console.log statement wherein you first explain in words what you think the _type_ of your variables is.
143
+
8\.4 Now use `typeof` to log the actual _type_ of your variables.
144
+
8\.5 Now compare the types of your different variables with one another.
145
+
8\.6 Make sure to also show a message when the variables you are comparing are not the same type.
178
146
179
147
For example:
180
148
@@ -189,16 +157,12 @@ if () {
189
157
```
190
158
191
159
9\. If `x` equals 7, and the only other statement is `x = x % 3`, what would be the new value of `x`?
192
-
193
-
9\.1 Add at least 3 `console.log` statements in which you show that you understand what `%` does.
160
+
9\.1 Add at least 3 `console.log` statements in which you show that you understand what `%` does.
194
161
195
162
10\. Write a program to answer the following questions:
196
-
197
-
10\.1 Can you store multiple types in an array? Numbers and strings? Make an example that illustrates your answer.
198
-
199
-
10\.2 Can you compare infinities? (Not in Eyad's world) - does 6/0 === 10/0? How can you test this?
200
-
201
-
10\.3 Add console.log statements to the above program's in which you show that you understand the concepts (just like you've done in the above assignments).
163
+
10\.1 Can you store multiple types in an array? Numbers and strings? Make an example that illustrates your answer.
164
+
10\.2 Can you compare infinities? (Not in Eyad's world) - does 6/0 === 10/0? How can you test this?
165
+
10\.3 Add console.log statements to the above program's in which you show that you understand the concepts (just like you've done in the above assignments).
rewrite the above program using `map` and `filter` don't forget to use `=>`
41
+
Rewrite the above program using `map` and `filter` don't forget to use `=>`
42
42
43
-
2. Use the array of the previous assignment, write a program that add the even numbers to the resulting array twice, but the odd numbers only once. Don't forget to use `=>`.
Copy file name to clipboardExpand all lines: Week6/MAKEME.md
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,12 @@ _Deadline Monday_
16
16
17
17
Give feedback on `step 3` of `week 5` to one of your fellow students (do this by creating issues in Github).
18
18
19
-
### Step 2: JavaScript
19
+
## Step 2: Git Homework
20
+
21
+
[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).
22
+
23
+
24
+
### Step 3: JavaScript
20
25
21
26
_Deadline Wednesday_
22
27
@@ -100,7 +105,7 @@ If you are confused please run the code and then consult the Google for "javaScr
100
105
101
106
<!-- Write assignment with more fun API -->
102
107
103
-
### Step 3: Some more JavaScript
108
+
### Step 4: Some more JavaScript
104
109
105
110
_Deadline Saturday_
106
111
@@ -129,7 +134,7 @@ You can see `CommandLine` in the URL. These are called "query parameters" and le
129
134
__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!
Copy file name to clipboardExpand all lines: Week7/MAKEME.md
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,21 @@ Topics discussed this week:
9
9
10
10
>[Here](/Week7/README.md) you find the readings you have to complete before the eighth lecture.
11
11
12
-
## Step 1: Git Homework
13
-
14
-
[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).
15
-
16
-
## Step 2: Give feedback on Step 3 and 4 of last weeks homework.
12
+
## Step 1: Give feedback on Step 3 and 4 of last weeks homework.
17
13
18
14
Give feedback on the SPA (Github API) and git branching homework of one of you fellow students. Please provide the feedback in an issue.
19
15
20
-
## Step 3: Issues
16
+
## Step 2: Issues
21
17
22
18
- Solve all your Git issues. DO NO CLOSE AN ISSUE WITHOUT AN EXPLANATION OR CODE COMMIT REFERENCING THAT ISSUE.
23
19
24
20
25
-
### Step 2: Fix issues and API
21
+
### Step 3: Fix issues and API
26
22
27
23
- Fix the issues from the last week and make sure you explain how you fixed the issue in a comment (or commit message)
28
24
29
25
30
-
### Step 3: SPA :sweat_drops:
26
+
### Step 4: SPA :sweat_drops:
31
27
You are going to write a SPA (Single Page Application) that uses the [Github API](https://developer.github.com/guides/getting-started/). Make sure that your app uses a logical pattern just like [this codepen](http://codepen.io/Razpudding/pen/MmVpeW).
0 commit comments