Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce0e673

Browse files
authored
Update LESSONPLAN.md
1 parent 39345b4 commit ce0e673

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

Week2/LESSONPLAN.md

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ The purpose of this class is to introduce to the student:
1313

1414
FIRST HALF (12.00 - 13.30)
1515

16-
1. Q&A about last week's concepts & homework
16+
### 1. Q&A about last week's concepts & homework
17+
(Add more content)
1718

18-
2. The difference between statements & expressions
19+
### 2. The difference between statements & expressions
1920
##### Explanation
2021
An expression is a piece of code that resolves in a value (becomes a value)
2122

@@ -69,17 +70,16 @@ if (s2 == s1) {
6970
}
7071
```
7172

72-
**18. List all 11 *statements* in the code above**
73-
74-
**19. List all 28 *expressions* in the code above (BONUS!)**
73+
List all 11 *statements* in the code above
74+
List all 28 *expressions* in the code above (BONUS!)
7575

7676
##### Essence
7777
It's important to know the difference between expressions and statement because:
78-
1. It will give you an overview on what the code is about (is it an instruction or is code that resolves in a value)
79-
2. While writing code you'll not mix up the two and therefore make sure that you do not write wrong code.
78+
1. It will give you an overview on what the code is about (is it an instruction or is code that resolves in a value)
79+
2. While writing code you'll not mix up the two and therefore make sure that you do not write wrong code.
8080

8181

82-
3. What are operators (comparison, arithmetic, logical, assignment)
82+
### 3. What are operators (comparison, arithmetic, logical, assignment)
8383
##### Explanation
8484
An operator is capable of manipulating a certain value or operand. Operators are used to perform specific mathematical and logical computations on operands. In other words, we can say that an operator operates the operands. In JavaScript operators are used for compare values, perform arithmetic operations etc. There are various operators supported by JavaScript:
8585

@@ -112,7 +112,7 @@ In fact, operators are the buildingblocks of all possible actions.
112112

113113
SECOND HALF (14.00 - 16.00)
114114

115-
4. What are loops (do/while & for loop)
115+
### 4. What are loops (do/while & for loop)
116116
##### Explanation
117117
Programming loops are about doing the same thing over and over again. Another term for that is: iteration
118118

@@ -129,11 +129,10 @@ You can check: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Buildin
129129

130130
5. What are conditional statements (if/else & switch)
131131
##### Explanation
132-
The normal order of execution of statements in a computer program is in straight-line order, from top to bottom. However, sometimes it is desirable to execute one or more statements conditionally, i.e. depending on whether some condition – determined by the state of your program – holds true.
132+
The normal order of execution of statements in a computer program is in straight-line order, from top to bottom. However, sometimes it is desirable to execute one or more statements conditionally, i.e. depending on whether some condition – determined by the state of your program – holds true (Boolean expression).
133133

134134
In its simplest form the `if` statement looks like this:
135135

136-
137136
```js
138137
if () {
139138
}
@@ -142,27 +141,16 @@ if () {
142141
Then we have:
143142
```js
144143
if() {
145-
146144
} else {
147-
148145
}
149-
150-
151146
```
147+
At last we have:
152148
```js
153149
if() {
154-
155150
} else if {
156-
157151
}
158152
```
159153

160-
Here, `condition` is a boolean expression that resolves to either `true` or `false` (or, more precisely, any expression that is 'truthy' or 'falsy', as will be explained later).
161-
162-
The statements within the curly braces `{` and `}` will be executed if the condition holds true, otherwise these statements will be skipped (i.e. ignored).
163-
164-
165-
166154
The switch statement can sometimes be a useful alternative to a concatenation of if statements. This is the case when the condition is an expression that can be decomposed into a number of distinct values or cases, as shown in the example below.
167155

168156
##### Example
@@ -174,6 +162,7 @@ if (distance < 10) {
174162

175163

176164
##### Exercise
165+
https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Statements/if...else
177166

178167

179168
##### Essence

0 commit comments

Comments
 (0)