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/REVIEW.md
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ baz.length; //-> 11
163
163
164
164
## Numbers
165
165
166
-
All numbers in JavaScript are considered numbers with or without decimal
166
+
All numbers in JavaScript are considered numbers with or without decimal -- briefly mentioned
167
167
168
168
```js
169
169
let quux =42;
@@ -175,7 +175,7 @@ typeof quuux //-> 'number'
175
175
```
176
176
177
177
178
-
## Arrays
178
+
## Arrays -- covered a substantial portion of this
179
179
180
180
Variables that are arrays contain a list of things, instead of just one thing. What's inside the array, we typically call "elements". So, the array `[1, 2, 3]` has three elements. The array `[]` has no elements and is therefore empty. The number of elements in an array is called its "length".
181
181
@@ -192,13 +192,15 @@ The number `0` is the "index of the first element of array `arr`". Conversely, t
192
192
193
193
Instead of a number, you can also use a variable to access elements in an array, *as long as this variable is a number*:
194
194
195
+
-- did not cover this
196
+
195
197
```js
196
198
let arr = ['john', 'jane', 'jack'];
197
199
let a =1;
198
200
console.log(arr[a]); // -> jane
199
201
```
200
202
201
-
If the index you use is not an integer (a whole number), or if it's less than `0` or if it's greater than or equal to the array's length, you will get back `undefined`.
203
+
If the index you use is not an integer (a whole number), or if it's less than `0` or if it's greater than or equal to the array's length, you will get back `undefined`. -- did not cover this
202
204
203
205
More about [arrays](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)
204
206
@@ -209,8 +211,8 @@ A single equals sign (=) is used to assign a value to a variable.
209
211
A triple equals sign (===) is used to compare two values (see Equality Operators).
210
212
211
213
#### Equality operators
212
-
* Equality `==`
213
-
* Inequality `!=`
214
+
* Equality `==` -- covered this
215
+
* Inequality `!=` -- mentioned this once
214
216
* Identity / strict equality `===`
215
217
* Non-identity / strict inequality `!==`
216
218
@@ -286,4 +288,5 @@ x += 1;
286
288
x = x +1;
287
289
```
288
290
291
+
covered idea of what a variable is -- it represents a number, or String, or something... I didn't use the word 'represents,' and I did not say 'in place of...'
0 commit comments