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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ Here you can find course content and homework for the JavaScript 1,2 and 3 modul
9
9
|Week|Topic|Read|Homework|
10
10
|----|-----|----|--------|
11
11
|0.|Preparation for your first JavaScript session|[Pre-reading](https://github.com/HackYourFuture/JavaScript/tree/master/Week0) + [CLI Reading Week 1](https://github.com/HackYourFuture/CommandLine/blob/master/Lecture-1.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]<br>• Operators| TBA|[Homework Week 1](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/MAKEME.md)|
|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]<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)|
# Reading material for your first JavaScript lesson:
2
2
3
-
## Read before session 1:
3
+
```
4
+
In week one we will discuss the following topics:
5
+
• The first part of the day Unmesh will talk about CLI (Command Line Interface)
6
+
• Intro JavaScript (What is it, where can you use it for)
7
+
• Variables [var, let, const]
8
+
• Basic Data types [Strings, Numbers, Arrays]
9
+
```
10
+
11
+
### Here are resources that we like you to read as a preparation for the coming lecture:
4
12
5
13
- Read this ~ http://speakingjs.com/es5/ch01.html read up to and including the *Strings* chapter (it’s okay if you don’t understand all of it yet, we will cover these concepts in class as well. Do make sure to write or document the questions you have so we can discuss them in class)
6
14
7
15
- Read the entire JavaScript Introduction at MDN~https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Introduction
8
16
9
-
_Please go through all of the material and come to class prepared!_
17
+
- Helpful resource: http://jsbooks.revolunet.com/ (here you can find tons of free JavaScript books online)
10
18
11
-
Helpful resource: http://jsbooks.revolunet.com/ (here you can find tons of free JavaScript books online)
19
+
_Please go through the material and come to class prepared!_
Copy file name to clipboardExpand all lines: Week1/REVIEW.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ tail -n <file> : display last n lines of file
27
27
man <COMMAND> : Display manual of the COMMAND
28
28
```
29
29
30
+
:star:Highly recommended:star::take a look at the Command Line [repository](https://github.com/HackYourFuture/CommandLine) and especially review the preparations of the first lecture: https://github.com/HackYourFuture/CommandLine/blob/master/Lecture-1.md
31
+
30
32
## Variables
31
33
32
34
A "variable" is a place where you can store information, such as a string, or a number. New variables in JavaScript are declared using one of three keywords: let, const, or var.
Copy file name to clipboardExpand all lines: Week2/MAKEME.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ if (3 == 3) {
34
34
35
35
12. 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:
36
36
37
-
```js
37
+
```js
38
38
var obj1 = {
39
39
a:1,
40
40
b:'this is the letter b',
@@ -50,15 +50,15 @@ if (3 == 3) {
50
50
bar: [1,2,3,4]
51
51
}
52
52
}
53
-
```
53
+
```
54
54
55
55
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!
56
56
57
57
Note: give this exercise your best shot but don’t spend more than, say, one hour on it.
58
58
59
-
2. 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.
59
+
13. 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.
60
60
61
-
```js
61
+
```js
62
62
functionfoo(func) {
63
63
// What to do here?
64
64
}
@@ -68,39 +68,43 @@ if (3 == 3) {
68
68
}
69
69
70
70
foo(bar);
71
-
```
71
+
```
72
72
73
73
74
-
Write some code to test two arrays for equality using `==` and `===`. Test the following:
74
+
14. Write some code to test two arrays for equality using `==` and `===`. Test the following:
75
75
76
-
```js
76
+
```js
77
77
var x = [1,2,3];
78
78
var y = [1,2,3];
79
79
var z = y;
80
-
```
81
-
What do you think will happen with `x == y`, `x === y` and `z == y` and `z == x`? Prove it!
80
+
```
81
+
82
+
What do you think will happen with `x == y`, `x === y` and `z == y` and `z == x`? Prove it!
82
83
83
-
> Don't cheat! Seriously -try it first.
84
+
> Don't cheat! Seriously - try it first.
84
85
85
-
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.
86
86
87
-
More insights from this [Stack Overflow question](http://stackoverflow.com/questions/22395357/how-to-compare-two-arrays-are-equal-using-javascript).
87
+
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.
88
+
89
+
More insights from this [Stack Overflow question](http://stackoverflow.com/questions/22395357/how-to-compare-two-arrays-are-equal-using-javascript).
88
90
89
91
### Step 2: **Some freeCodeCamp challenges:**
90
92
91
-
3. [Comparisons with the Logical And Operator](https://www.freecodecamp.com/challenges/comparisons-with-the-logical-and-operator)
93
+
1.. [Comparisons with the Logical And Operator](https://www.freecodecamp.com/challenges/comparisons-with-the-logical-and-operator)
In week three we will discuss the following topics:
5
+
• CLI (Command Line Interface)
6
+
• Closures
7
+
• Scope
8
+
• Array Manipulations
9
+
• Basic DOM manipulations [img src, innerHTML]
10
+
• Code commenting
11
+
```
12
+
13
+
### Here are resources that we like you to read as a preparation for the coming lecture.
14
+
15
+
Refresher:
16
+
* Objects (*important to really understand them, read this if you are unsure! You may also read chapters 72, 73 and 74 if you have time and want to learn more*):</br>
17
+
Chapters 70-71, 75
18
+
19
+
_Please go through the material and come to class prepared!_
- In you next lecture **Unmesh** will give you your first Git session, please look through the [GIT](https://github.com/HackYourFuture/Gitrepository) and read the learning goals.
18
+
19
+
### A Refresher from some previous covered topics:
Next week **Unmesh** will give you your first Git session, please look through the [GIT](https://github.com/HackYourFuture/Gitrepository) and read the learning goals.
30
+
_Please go through the material and come to class prepared!_
14
31
15
-
### Read this in preparation for the material taught in the upcoming class
Read your book ('A Smarter Way To Learn JavaScript')! If you don't do it on yourself, here's the chapters to read next for next week:
4
24
*Note: If you already know the material you are reading just take a glance over it and don't use too much time. Just be sure that you get everything! You may have already read about it, or used it in the previous classes. Note that this also has 'catch up' material in it, about functions and objects. If you did not take the time to read your book yet about these things please do so!*
5
25
@@ -15,8 +35,5 @@ Chapters 35 - 38
15
35
* Objects (*important to really understand them, read this if you are unsure! You may also read chapters 72, 73 and 74 if you have time and want to learn more*):</br>
### Here are resources that we like you to read as a preparation for the coming lecture:
4
12
5
13
-[Learning JavaScript Design Patterns](https://addyosmani.com/resources/essentialjsdesignpatterns/book/#detailnamespacing) up to and including chapter 3
6
14
-[JavaScript Variable Scope and Hoisting Explained](http://javascriptissexy.com/javascript-variable-scope-and-hoisting-explained/)
7
15
8
-
>If you feel you need preparation for the test I recommend to take a look at the topics listed in the [README](https://github.com/HackYourFuture) of this repo (up to and including week 6) and look up these concepts in your __Smarter Way to Learn JavaScript__ book :books:. It's also useful to go through the reading material and homework of the last weeks.
16
+
```
17
+
If you feel you need preparation for the test we recommend to do the following:
18
+
• Take a look at the topics listed in the [README](https://github.com/HackYourFuture) of this repo (up to and including week 6).
19
+
• Review all the _REVIEW.md_ files in every week.
20
+
• Look up the concepts you are struggling with in your __Smarter Way to Learn JavaScript__ book :books:.
21
+
• It's also useful to go through the reading material and homework of the last weeks.
22
+
```
23
+
24
+
_Please go through the material and come to class prepared!_
0 commit comments