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/LESSONPLAN.md
+31-28Lines changed: 31 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -13,23 +13,23 @@ The purpose of this class is to introduce to the student:
13
13
14
14
## Core concepts
15
15
16
-
### FIRST HALF (12.00 - 13.30)
16
+
*FIRST HALF (12.00 - 13.30)*
17
17
18
-
####1. The 2 types of websites: static vs. dynamic
18
+
## 1. The 2 types of websites: static vs. dynamic
19
19
20
-
#####Explanation
20
+
### Explanation
21
21
22
22
Static websites usually come with a fixed number of pages that have a specific layout. When the page runs on a browser, the content is literally static and doesn’t change in response to user actions. A static website is usually created with HTML and CSS
23
23
Compared to static websites, which are purely informational, a dynamic website is more functional. It allows users to interact with the information that is listed on the page. Of course, that requires utilizing more than just HTML code.
Discuss in class which claim belongs to which type of website:
35
35
@@ -46,7 +46,7 @@ Discuss in class which claim belongs to which type of website:
46
46
HTML, CSS, Javascript is used for developing the website.
47
47
Same content is delivered everytime the page is loaded.
48
48
49
-
#####Essence
49
+
### Essence
50
50
51
51
[In the link is an article with (dis)advantages of both static and dynamic websites.](https://www.spiderwriting.co.uk/static-dynamic.php)
52
52
@@ -68,19 +68,19 @@ Discuss in class which claim belongs to which type of website:
68
68
69
69
_Show examples of static and dynamic websites_
70
70
71
-
####2. The pillars of web development: HTML/CSS/JavaScript
71
+
## 2. The pillars of web development: HTML/CSS/JavaScript
72
72
73
-
#####Explanation
73
+
### Explanation
74
74
75
75
- HTML defines what the content is.
76
76
- CSS defines the appearance of the page.
77
77
- JavaScript defines behavior of the page.
78
78
79
-
#####Example
79
+
### Example
80
80
81
81
- An example about relationship between HTML, CSS and Javascript using a metaphor of building a city: https://blog.codeanalogies.com/2018/05/09/the-relationship-between-html-css-and-javascript-explained/
82
82
83
-
#####Exercise
83
+
### Exercise
84
84
85
85
Let students create a classwork directory and create an index.html along with an app.js. Script tag should be added to the end of body tag(reason for doing so is part of JS2 Week1).
86
86
@@ -92,7 +92,7 @@ The end result should look like:
92
92
- app.js
93
93
```
94
94
95
-
#####Essence
95
+
### Essence
96
96
97
97
Up until now at HackYourFuture, we have been writing websites using HTML and CSS. Even though a website written with these two languages works just fine, it is only a static page.
98
98
@@ -107,9 +107,9 @@ It doesn't exhibit any dynamic behaviour like:
107
107
1. sending requests over network to servers and fetching a response
108
108
1. and this is where JavaScript steps in.
109
109
110
-
####3. What are variables (const & let) & naming conventions
110
+
## 3. What are variables (const & let) & naming conventions
111
111
112
-
#####Explanation
112
+
### Explanation
113
113
114
114
In JavaScript, there are three ways of creating variables.
115
115
@@ -128,7 +128,8 @@ Three different stages of working with variables are:
128
128
- Variable (Re)Assignment
129
129
- Variable assignment means throwing away the old value of a variable and replacing it with a new one. Initialization can be thought of as a special way of assignment.
1. the first variable should contain the city you currently stay at
178
179
1. come up with a value for the second variable yourself
179
180
180
-
#####Essence
181
+
### Essence
181
182
182
183
Any application written in any programming language requires data or information to work with. This information can be as simple as a string, number or complex types like a list of strings, a mix of strings and numbers etc.
183
184
184
185
For example, your name and age are simple pieces of information, a string and a number respectively. On the other hand, your house address could be considered as a complex set of information including house number, street name, city, postcode and country.
185
186
186
187
Variables are simply named storage/pointer for this information.
187
188
188
-
### SECOND HALF (14.00 - 16.00)
189
+
*SECOND HALF (14.00 - 16.00)*
189
190
190
-
####4. The basic data types (string, boolean, number, undefined, null)
191
+
## 4. The basic data types (string, boolean, number, undefined, null)
191
192
192
-
#####Explanation
193
+
### Explanation
193
194
Primitive data types are typically types that are built-in or basic to a language implementation.
194
195
195
196
There are 5 different types of data. The compiler/computer interpretates all the variables we make as one of those datatypes.
@@ -201,7 +202,7 @@ Undefined — a declared variable but hasn’t been given a value
201
202
Number — integers, floats, etc
202
203
String — an array of characters i.e words
203
204
?? Symbol — a unique value that's not equal to any other value ??
0 commit comments