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: README.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,16 @@ Here you can find course content and homework for the JavaScript 1,2 and 3 modul
8
8
9
9
|Week|Topic|Read|Homework|Review|
10
10
|----|-----|----|--------|------|
11
-
|0.|Preparation for your first JavaScript session|[Pre reading](https://github.com/HackYourFuture/JavaScript/tree/master/Week0)|-|-|
12
-
|1.|• [CLI](https://github.com/HackYourFuture/CommandLine) session with Unmesh :heart: <br>• Intro JavaScript (What is it, where can you use it for)<br>• Variables [var, let, const]<br>• Basic Data types [Strings, Numbers, Arrays, Booleans]<br>• Operators|[Reading Week 1](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/README.md)|[Homework Week 1](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/MAKEME.md)|[Review](https://github.com/HackYourFuture/JavaScript/blob/master/Week1/REVIEW.md)|
13
-
|2.|• [CLI](https://github.com/HackYourFuture/CommandLine) session with Unmesh :balloon: <br>• Advanced data types [Objects] <br>• Conditions <br>• Statements vs Expressions<br> • Loops (for/while)<br>• Functions <br>• Naming conventions|[Reading Week 2](https://github.com/HackYourFuture/JavaScript/tree/master/Week2/README.md)|[Homework Week 2](https://github.com/HackYourFuture/JavaScript/tree/master/Week2/MAKEME.md)|[Review](https://github.com/HackYourFuture/JavaScript/blob/master/Week2/REVIEW.md)|
14
-
|3.|• Capturing user input<br> • Basic DOM manipulations [img src, innerHTML]<br>• Code debugging using the browser<br> • Code commenting<br> • Structuring code files<br> • Scope<br> • State|[Reading Week 3](https://github.com/HackYourFuture/JavaScript/tree/master/Week3)|[Homework Week 3](https://github.com/HackYourFuture/JavaScript/tree/master/Week3/MAKEME.md)|[Review](https://github.com/HackYourFuture/JavaScript/blob/master/Week3/REVIEW.md)|
15
-
|4.| Git Session with Unmesh :smiling_imp:|[Reading Week 4](https://github.com/HackYourFuture/JavaScript/tree/master/Week4)|[Homework Week 4](https://github.com/HackYourFuture/JavaScript/tree/master/Week4/MAKEME.md)|Review|
|7.|• (Object Oriented Programming)<br>• Code flow (order of execution) <br>• Async VS Sync |[Reading Week 7](https://github.com/HackYourFuture/JavaScript/tree/master/Week7)|[Homework Week 7](https://github.com/HackYourFuture/JavaScript/tree/master/Week7/MAKEME.md)|[Review](https://github.com/HackYourFuture/JavaScript/blob/master/Week7/REVIEW.md)|
19
-
|8.|• Structure for a basic SPA <br>• XHTTP Requests <br>• API calls|[Reading Week 8](https://github.com/HackYourFuture/JavaScript/tree/master/Week8/README.md)|[Homework Week 8](https://github.com/HackYourFuture/JavaScript/tree/master/Week8/MAKEME.md)|Review|
20
-
|9.|• (re)writing data structures (in JSON)<br>• Promises|[Reading Week 9](https://github.com/HackYourFuture/JavaScript/blob/master/Week9/README.md)|[Homework Week 9](https://github.com/HackYourFuture/JavaScript/blob/master/Week9/MAKEME.md)|[Review](https://github.com/HackYourFuture/JavaScript/blob/master/Week9/REVIEW.md)|
11
+
|0.|Preparation for your first JavaScript session|[Pre reading](/Week0/README.md)|-|-|
12
+
|1.|• [CLI](https://github.com/HackYourFuture/CommandLine) session with Unmesh :heart: <br>• Intro JavaScript (What is it, where can you use it for)<br>• Variables [var, let, const]<br>• Basic Data types [Strings, Numbers, Arrays, Booleans]<br>• Operators|[Reading Week 1](/Week1/README.md)|[Homework Week 1](/Week1/MAKEME.md)|[Review](/Week1/REVIEW.md)|
13
+
|2.|• [CLI](https://github.com/HackYourFuture/CommandLine) session with Unmesh :balloon: <br>• Advanced data types [Objects] <br>• Conditions <br>• Statements vs Expressions<br> • Loops (for/while)<br>• Functions <br>• Naming conventions|[Reading Week 2](/Week2/README.md)|[Homework Week 2](/Week2/MAKEME.md)|[Review](/Week2/REVIEW.md)|
14
+
|3.|• Capturing user input<br> • Basic DOM manipulations [img src, innerHTML]<br>• Code debugging using the browser<br> • Code commenting<br> • Structuring code files<br> • Scope<br> • State|[Reading Week 3](/Week3/README.md)|[Homework Week 3](/Week3/MAKEME.md)|[Review](/Week3/REVIEW.md)|
15
+
|4.| Git Session with Unmesh :smiling_imp:|[Reading Week 4](/Week4/README.md)|[Homework Week 4](/Week4/MAKEME.md)|Review|
Copy file name to clipboardExpand all lines: Week1/MAKEME.md
+59-44Lines changed: 59 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,15 @@
1
1
## Homework week 1:
2
2
3
-
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/README.md) you find the readings you have to complete before the second lecture.
3
+
```
4
+
Topics discussed in class this week:
5
+
• CLI
6
+
• Intro JavaScript (What is it, where can you use it for)
7
+
• Variables [var, let, const]
8
+
• Basic Data types [Strings, Numbers, Arrays, Booleans]
9
+
• Operators
10
+
```
11
+
12
+
>[Here](/Week1/README.md) you find the readings you have to complete before the second lecture.
4
13
5
14
## Before you start with the homework:
6
15
@@ -61,19 +70,19 @@ Hola, mundo! // Spanish
61
70
```
62
71
console.log('I'm awesome');
63
72
```
64
-
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.
73
+
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.
65
74
66
75
3. Declare a variable `x` and initialize it with an integer.
67
-
3.1 First, _declare_ your variable `x`.
68
-
<br> 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:
76
+
1. First, _declare_ your variable `x`.
77
+
2. Add a console.log statement that explains that explains in words what _you think_ the value of `x` is, like in this example:
69
78
```js
70
79
// TODO -> here you initialize your variable
71
80
console.log('the value of my variable x will be: whateverYouThinkItWillLog');
72
81
```
73
-
<br> 3.3 Add a console.log statement that logs the value of `x`
74
-
<br> 3.4 Now _initialize_ your variable `x` with an integer
75
-
<br> 3.5 Now add a console.log statement that explains what _you think_ the value of `x` is.
76
-
<br> 3.6 Add a console.log statement that logs the value of `x`.
82
+
3. Add a console.log statement that logs the value of `x`
83
+
4. Now _initialize_ your variable `x` with an integer
84
+
5. Now add a console.log statement that explains what _you think_ the value of `x` is.
85
+
6. Add a console.log statement that logs the value of `x`.
77
86
Steps to be taken:
78
87
79
88
```js
@@ -86,11 +95,11 @@ console.log('I'm awesome');
86
95
```
87
96
88
97
4. Declare a variable `y` and assign a string to it.
89
-
4.1 Write a console.log statement in which you explain in words what _you think_ the value of the string is
90
-
<br> 4.2 Now console.log the variable `y`.
91
-
<br> 4.3 Now assign a new string to the variable `y`
92
-
<br> 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.
93
-
<br> 4.5 Now console.log `y` again.
98
+
1. Write a console.log statement in which you explain in words what _you think_ the value of the string is
99
+
2. Now console.log the variable `y`.
100
+
3. Now assign a new string to the variable `y`
101
+
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
+
5. Now console.log `y` again.
94
103
```js
95
104
// TODO -> here you declare AND assign your string
96
105
console.log('the value of my string will be: whateverYouThinkItWillLog');
@@ -101,41 +110,41 @@ console.log('I'm awesome');
101
110
```
102
111
103
112
5. How do you round the number 7.25, to the nearest integer?
104
-
5.1 Declare a variable `z` and assign the number 7.25 to it.
105
-
<br> 5.2 Console.log `z`.
106
-
<br> 5.3 Declare another variable `a` that has the value of z but rounded to the nearest integer.
107
-
<br> 5.4 Console.log `a`
108
-
<br> 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.
109
-
<br> 5.6 Console.log the highest value.
113
+
1. Declare a variable `z` and assign the number 7.25 to it.
114
+
2. Console.log `z`.
115
+
3. Declare another variable `a` that has the value of z but rounded to the nearest integer.
116
+
4. Console.log `a`
117
+
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
+
6. Console.log the highest value.
110
119
111
120
6. Arrays!
112
-
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).
113
-
<br> 6.2 Write a console.log statement that explains in words what you think the value of the array is.
114
-
<br> 6.3 Console.log your array.
115
-
<br> 6.4 Create an array that has your favorite animals inside
116
-
<br> 6.5 Log your array
117
-
<br> 6.6 Add a statement that adds Daan's favorite animal (baby pig) to the *existing array*
118
-
119
-
<br> 6.7 Log your new array!
121
+
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
+
2. Write a console.log statement that explains in words what you think the value of the array is.
123
+
3. Console.log your array.
124
+
4. Create an array that has your favorite animals inside
125
+
5. Log your array
126
+
6. Add a statement that adds Daan's favorite animal (baby pig) to the *existing array*
127
+
7. Log your new array!
120
128
121
129
7. More strings
122
-
<br> 7.1 Let's consider the following string: `let myString = "this,is,a,test"`.
123
-
<br> 7.2 Add the string to your file and console.log it.
124
-
<br> 7.3 Find a way to get the length of `myString`.
125
-
<br> 7.4 Console.log the length of `myString`.
130
+
1. Let's consider the following string: `let myString = "this,is,a,test"`.
131
+
2. Add the string to your file and console.log it.
132
+
3. Find a way to get the length of `myString`.
133
+
4. Console.log the length of `myString`.
126
134
127
135
8. Write a program that checks the types of two variables and prints out `SAME TYPE` if they are the same type.
128
-
8.1 First declare at least four variables and assign them different data types.
129
-
<br> 8.2 For each variable write a `console.log` statement that logs the value
136
+
1. First declare at least four variables and assign them different data types.
137
+
2. For each variable write a `console.log` statement that logs the value
130
138
```js
131
139
let foo =3;
132
140
console.log('The value of my variable foo is: '+ foo);
133
141
```
134
-
<br> 8.3 Now write a console.log statement wherein you first explain in words what you think the _type_ of your variables is.
135
-
<br> 8.4 Now use `typeof` to log the actual _type_ of your variables.
136
-
<br> 8.5 Now compare the types of your different variables with one another.
137
-
<br> 8.6 Make sure to also show a message when the variables you are comparing are not the same type.
138
-
<br> For example:
142
+
3. Now write a console.log statement wherein you first explain in words what you think the _type_ of your variables is.
143
+
4. Now use `typeof` to log the actual _type_ of your variables.
144
+
5. Now compare the types of your different variables with one another.
145
+
6. Make sure to also show a message when the variables you are comparing are not the same type.
146
+
147
+
For example:
139
148
140
149
```js
141
150
let x =9;
@@ -148,19 +157,25 @@ if () {
148
157
```
149
158
150
159
9. If `x` equals 7, and the only other statement is `x = x % 3`, what would be the new value of `x`?
151
-
9.1 Add at least 3 `console.log` statements in which you show that you understand what `%` does.
160
+
1. Add at least 3 `console.log` statements in which you show that you understand what `%` does.
152
161
153
162
10. Write a program to answer the following questions:
154
-
10.1 Can you store multiple types in an array? Numbers and strings? Make an example that illustrates your answer.
155
-
<br> 10.2 Can you compare infinities? (Not in Eyad's world) - does 6/0 === 10/0? How can you test this?
156
-
<br> 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
+
1. Can you store multiple types in an array? Numbers and strings? Make an example that illustrates your answer.
164
+
2. Can you compare infinities? (Not in Eyad's world) - does 6/0 === 10/0? How can you test this?
165
+
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).
On freeCodeCamp.com please do the [Basic JavaScript](https://www.freecodecamp.com/challenges/learn-how-free-code-camp-works) exercises up and until the __"Shopping List"__ exercise (there are some topics we did not cover but you can do it).
163
172
173
+
### Step 5: Read before next lecture
174
+
175
+
_Deadline Sunday morning_
176
+
177
+
Go trough the reading material in the [README.md](/Week1/README.md) to prepare for your next class
178
+
164
179
### How to hand in Homework:
165
180
```
166
181
steps:
@@ -179,5 +194,5 @@ steps:
179
194
### Hint
180
195
If you solve the FreeCodeCamp challenges and they are new concepts to you and you would like to take a look at them later on in the program, Copy your answers from FCC in a `.js` file and upload them to Github in a repository for future reference. In this way you build your own little documentation, if you look back at them first try to understand what it does before you run them.
181
196
182
-
:star: Additional resources and review: [here](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/REVIEW.md) (work in progress):star:
197
+
:star: Additional resources and review: [here](/Week1/REVIEW.md):star:
Go trough the reading material in the [README.md](/Week2/README.md) to prepare for your next class
163
+
147
164
```
148
165
How to hand in your homework:
149
166
• Upload your homework in your "hyf-javascript1" Github repository. Make sure to create a new folder "week2" first.
@@ -152,29 +169,4 @@ How to hand in your homework:
152
169
• Place the link to your repository folder in Trello.
153
170
```
154
171
155
-
:star: Additional resources and review: [here](https://github.com/HackYourFuture/JavaScript/tree/master/Week2/REVIEW.md) (work in progress):star:
156
-
157
-
<!-- 13. Create a function that takes two objects as parameters and compares them. You will actually need to write two functions — one that compares with `==` and one that compares with `===`. Remember that objects can have objects inside of them so you'll need to find a way to compare every element of every object (types and values). For example:
158
-
159
-
```js
160
-
let obj1 = {
161
-
a: 1,
162
-
b: 'this is the letter b',
163
-
c: { foo: 'what is a foo anyway',
164
-
bar: [1,2,3,4]
165
-
}
166
-
}
167
-
168
-
let obj2 = {
169
-
a: '1',
170
-
b: 'this is the letter b',
171
-
c: { foo: 'what is a foo anyway',
172
-
bar: [1,2,3,4]
173
-
}
174
-
}
175
-
```
176
-
177
-
In our example we'll say that `obj1 == obj2` is `true` and `obj1 === obj2` is `false`. Make sure you can see why before you write any code!
178
-
179
-
Note: give this exercise your best shot but don’t spend more than, say, one hour on it.
180
-
-->
172
+
:star: Additional resources and review: [here](/Week2/REVIEW.md):star:
Copy file name to clipboardExpand all lines: Week3/MAKEME.md
+17-8Lines changed: 17 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,22 @@
1
1
## Homework Week 3
2
2
3
-
>[Here](https://github.com/HackYourFuture/JavaScript/tree/master/Week3/README.md) you find the readings you have to complete before the fourth lecture.
4
-
3
+
```
4
+
Topics discussed in class this week:
5
+
• Capturing user input
6
+
• Basic DOM manipulations [img src, innerHTML]
7
+
• Code debugging using the browser
8
+
• Code commenting
9
+
• Structuring code files
10
+
• Scope
11
+
• State
12
+
```
5
13
6
-
## Step 0 review:
7
-
- Go through the review of [the first week](https://github.com/HackYourFuture/JavaScript/blob/master/Week1/REVIEW.md)
8
-
- Go through the review of [the second week](https://github.com/HackYourFuture/JavaScript/blob/master/Week2/REVIEW.md)
9
-
- Go through the review of [the third week](https://github.com/HackYourFuture/JavaScript/blob/master/Week3/REVIEW.md)
14
+
>[Here](/Week3/README.md) you find the readings you have to complete before the fourth lecture.
10
15
16
+
## Step 0: review
17
+
- Go through the review of [the first week](/Week1/REVIEW.md)
18
+
- Go through the review of [the second week](/Week2/REVIEW.md)
19
+
- Go through the review of [the third week](/Week3/REVIEW.md)
0 commit comments