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: Week3/LESSONPLAN.md
+81-8Lines changed: 81 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,22 +8,95 @@ The purpose of this class is to introduce to the student:
8
8
- Wat is scope (global, functional, block)
9
9
- How to combine variables, loops & functions
10
10
11
-
###Core concepts
11
+
## Core concepts
12
12
13
13
FIRST HALF (12.00 - 13.30)
14
14
15
-
1. Q&A about last week's concepts & homework
15
+
## 1. Q&A about last week's concepts & homework
16
16
17
-
2. What is a function (ES5 only)
17
+
### Explanation
18
+
### Example
19
+
### Exercise
20
+
### Essence
18
21
19
-
**Do Exercise**
22
+
## 2. What is a function (ES5 only)
23
+
24
+
### Explanation
25
+
Functions are a way to organize your code in to re-usable chunks.
26
+
27
+
> People think that computer science is the art of geniuses but the actual reality is the opposite, just many people doing things that build on each other, like a wall of mini stones.
-__Reusability__: Functions can be grouped together to make a module (or library), and then modules can be imported into your application so you can build awesome apps!
38
+
-__Abstraction__: Hide underlying details about how a piece of functionality works under the hood. You can change how things are implemented within the function without other programmers who use your function worrying aobut the exact details of how it was implemented.
39
+
40
+
And the same link as Explanation
20
41
21
42
SECOND HALF (14.00 - 16.00)
22
43
23
-
3. Wat is scope (global, functional, block)
44
+
## 3. Wat is scope (global, functional, block)
45
+
46
+
### Explanation
47
+
Scopes define the visiblity of declarations of variables and functions.
48
+
49
+
The top level outside all your functions is called the _global scope_. Values defined in the global scope are accessible from everywhere in the code.
50
+
51
+
-`var` and `function` declarations are visible with function scope.
52
+
-`let` and `const` declarations are visible with block scope.
0 commit comments