File tree 8 files changed +9
-13
lines changed
8 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ An introductory JavaScript workshop for beginners.
4
4
5
5
## Slides
6
6
7
- Check on slides, click [ here] ( https://docs.google.com/presentation/d/137Q_qJ60GE5cTpKzBodfbzSVhp--jPi4x3N9hxQKAyA/edit?usp=sharing )
7
+ Check on slides, click [ here] ( https://goo.gl/5HNvxD )
8
8
9
9
10
10
## Feedback
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ It repeats code over and over again until som
8000
e condition is met.
100
100
This loop is similar to ‘while loop’, just with a set amount of repetition. You declare counter in the statement as so:
101
101
102
102
```
103
- for (var i = 0; i < 5; i++) {
103
+ for (let i = 0; i < 5; i++) {
104
104
do something 5 times
105
105
}
106
106
```
Original file line number Diff line number Diff line change @@ -12,11 +12,8 @@ body {
12
12
background : # EFEFEF ;
13
13
display : flex;
14
14
flex-direction : column;
15
- font-family : 'Source Sans Pro' , sans-serif;
16
- font-size : 100% ;
15
+ font-family : Avenir, 'Source Sans Pro' , sans-serif;
17
16
justify-content : center;
18
- min-height : 100vh ;
19
- color : # 464646 ;
20
17
}
21
18
22
19
body * {
@@ -30,13 +27,13 @@ header {
30
27
}
31
28
32
29
h1 {
33
- font-family : 'GFS Didot' , serif;
30
+ font-family : Didot , 'GFS Didot' , serif;
34
31
font-size : 5rem ;
35
32
margin : 0 3.5rem ;
36
33
}
37
34
38
35
h2 {
39
- font-family : 'GFS Didot' , serif;
36
+ font-family : Didot , 'GFS Didot' , serif;
40
37
font-size : 4rem ;
41
38
margin : 0 3rem ;
42
39
}
@@ -82,11 +79,10 @@ footer {
82
79
}
83
80
84
81
footer > div {
85
- background-color : # 7986e5 ;
86
82
color : white;
87
83
display : flex;
88
84
flex-direction : row;
89
- font-family : 'Source Sans Pro' , sans-serif;
85
+ font-family : Avenir , 'Source Sans Pro' , sans-serif;
90
86
font-size : 1.4rem ;
91
87
justify-content : space-between;
92
88
margin : 0 auto;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ <h2>Let's do some interactive coding today!</h2>
46
46
< ul >
47
47
< li class ="website ">
48
48
< span > Website:</ span >
49
- < a href ="http ://musescodejs.org " target ="_blank " rel ="noopener noreferrer "> musescodejs.org</ a >
49
+ < a href ="https ://musescodejs.org " target ="_blank " rel ="noopener noreferrer "> musescodejs.org</ a >
50
50
</ li >
51
51
< li class ="email ">
52
52
< span > e-mail:</ span >
Original file line number Diff line number Diff line change 248
248
249
249
Example:
250
250
251
- let number = 7;
251
+ const number = 7;
252
252
if (number > 7) {
253
253
console.log('Our number is bigger than 7');
254
254
} else {
357
357
358
358
// the result of a comparison is a Boolean value, so we can
359
359
// save it to a variable
360
- var bool = (1 < 2);
360
+ const bool = (1 < 2);
361
361
console.log(bool);
362
362
console.log(!bool); // "not true", therefore false
363
363
console.log(bool); // the original value isn't affected
You can’t perform that action at this time.
0 commit comments