|
2 | 2 |
|
3 | 3 | ``` |
4 | 4 | This review covers: |
5 | | -- More CLI |
6 | | -- Scope, closures and 'this' |
7 | | -- Array Manipulations |
8 | | -- Basic DOM manipulations |
9 | | -- Code commenting |
| 5 | +• Git work flow |
| 6 | +• Advanced data types [Objects] |
| 7 | +• Conditions |
| 8 | +• Statements vs Expressions |
| 9 | +• Loops (for/while) |
| 10 | +• Functions |
| 11 | +• Scope |
10 | 12 | ``` |
11 | 13 |
|
12 | | -## More CLI |
13 | | -Check out the CLI review here: https://github.com/HackYourFuture/CommandLine/blob/master/Lecture-2.md |
| 14 | +## Recap Logical operators |
14 | 15 |
|
15 | | -## Scope, closures and 'this' |
| 16 | +* AND `&&` |
| 17 | +* OR `||` |
| 18 | +* NOT `!` |
16 | 19 |
|
17 | | -Scope, closure and 'this' are about *context*. |
| 20 | +[Read more...](../fundamentals/operators.md#logical-operators) |
18 | 21 |
|
19 | | -[Read more...](../fundamentals/scope_closures_this.md) |
| 22 | +## Typeof |
20 | 23 |
|
21 | | -## Array Manipulation |
| 24 | +`typeof` always returns the data type in a string. |
22 | 25 |
|
23 | | -As we know by now, arrays are collections of values. |
| 26 | +[Read more...](../fundamentals/operators.md#typeof-operator) |
24 | 27 |
|
25 | | -As we will see, there are often many ways to achieve the same thing when working arrays. Over time, you will add different techniques to your mental toolbox to achieve the result you want quickly. |
| 28 | +## Objects |
26 | 29 |
|
27 | | -[Read more...](../fundamentals/array_manipulation.md) |
| 30 | +Variables that are objects also contain a list of things, but instead of them being in some specific order, they can be assigned to words, called "keys". Instead of "elements" the things that are inside objects are called "properties". |
28 | 31 |
|
29 | | -## Basic DOM manipulations |
| 32 | +[Read more...](../fundamentals/object.md) |
30 | 33 |
|
31 | | -Using JavaScript we can access and manipulate the Document Object Model (DOM). We access the DOM through a global object called `document`. |
| 34 | +## Functions |
32 | 35 |
|
33 | | -[Read more...](../fundamentals/DOM_manipulation.md) |
| 36 | +A function is a reusable piece of code. Functions are *very* important in JavaScript, to the extent that some people call JavaScript a "function-oriented" language. As mentioned above, variables can be of type function. In fact, *every function is a variable*. |
34 | 37 |
|
35 | | -## Code Commenting |
36 | | -First the straightforward part: how do we place comments in our code? |
| 38 | +[Read more...](../fundamentals/functions.md) |
37 | 39 |
|
38 | | -### JavaScript |
39 | | -Single line comments |
40 | | -```js |
41 | | -// Change heading: |
42 | | -document.getElementById("myH").innerHTML = "My First Page"; |
43 | | -``` |
| 40 | +## Statements & expressions |
| 41 | + |
| 42 | +Most programming languages that you'll encounter in real life are called "imperative" programming languages. JavaScript is such an imperative programming language. Imperative is another word for command-like. That is, you give the computer a bunch of commands after each other. First do this, then do that, etc. |
44 | 43 |
|
45 | | -[Read more...](../fundamentals/code_commenting.md) |
| 44 | +[Read more...](../fundamentals/statements_expressions.md) |
0 commit comments