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

Skip to content

Commit 9b69c26

Browse files
author
Noer Paanakker
committed
raw notes lesson plans w1-3
1 parent e248bf9 commit 9b69c26

File tree

3 files changed

+132
-0
lines changed

3 files changed

+132
-0
lines changed

Week1/LESSONPLAN.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Lesson Plan JavaScript3 Week 1
2+
3+
## Agenda
4+
5+
The purpose of this class is to introduce to the student:
6+
7+
- What are `APIs` and how to interact with them
8+
- What is `AJAX` and how to apply it (`XMLHttpRequest`)
9+
- How to use libraries (`axios`)
10+
11+
## Core concepts
12+
13+
FIRST HALF (12.00 - 13.30)
14+
15+
1. What are APIs and how to interact with them
16+
17+
Notes:
18+
19+
- Part of an application that can be communicated with from an outside source
20+
- Connect to it using "endpoints"
21+
- Mostly used to request data from some service
22+
23+
**Show examples**
24+
25+
2. What is `AJAX` and how to apply it (`XMLHttpRequest`)
26+
27+
Notes:
28+
29+
- It's a technique, not a technology
30+
- `AJAX` stands for Asynchronous JavaScript and XML
31+
- Nowadays we use `JSON` instead of `XML`
32+
- Fetch data without reloading the page
33+
34+
**Do exercise**
35+
36+
SECOND HALF (14.00 - 16.00)
37+
38+
3. How to use libraries (`axios`)
39+
40+
Notes:
41+
42+
- A library is a code solution a developer (or a team) has written to a common problem
43+
- Usually open-source
44+
- Helps to solve a problem within an application
45+
- Read the documentation on how to use it
46+
47+
**Do Exercise**

Week2/LESSONPLAN.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Lesson Plan JavaScript3 Week 2
2+
3+
## Agenda
4+
5+
The purpose of this class is to introduce to the student:
6+
7+
- How to use the `fetch` API to do AJAX calls
8+
- The structure and use of `Promises`
9+
- The `this` keyword and its relationship with `scope`
10+
11+
## Core concepts
12+
13+
FIRST HALF (12.00 - 13.30)
14+
15+
1. The structure and use of `Promises`
16+
17+
Notes:
18+
19+
- It's the accepted solution to [callback hell](http://callbackhell.com/)
20+
- It's a way to introduce asynchronicity to your application
21+
- Makes asynchronous code read like it's synchronous
22+
23+
**Show examples**
24+
25+
2. How to use the `fetch` API to do AJAX calls
26+
27+
Notes:
28+
29+
- Modern replacement of XMLHttpRequest
30+
- Uses Promise structure
31+
- The Fetch API is defined in the browser
32+
- Only modern browsers support it (show [caniuse.com](https://caniuse.com/#feat=fetch))
33+
34+
**Do exercise**
35+
36+
SECOND HALF (14.00 - 16.00)
37+
38+
3. The `this` keyword and its relationship with `scope`
39+
40+
Notes:
41+
42+
-

Week3/LESSONPLAN.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Lesson Plan JavaScript3 Week 3
2+
3+
## Agenda
4+
5+
The purpose of this class is to introduce to the student:
6+
7+
- The purpose and use of `async/await`
8+
- What is `Object-Oriented Programming` (OOP) is and how it's applied to JavaScript
9+
- How to use ES6 `classes`
10+
11+
## Core concepts
12+
13+
1. The purpose and use of `async/await`
14+
15+
Notes:
16+
17+
- It's an upgrade to `Promises`
18+
- Makes writing an asynchronous function more readable
19+
20+
**Do exercise**
21+
22+
2. What is `Object-Oriented Programming` (OOP) is and how it's applied to JavaScript
23+
24+
Notes:
25+
26+
- It's a programming style; it defines how to organise your application
27+
- In OOP each program would be split up into self-contained objects, that then communicate with each other
28+
- Each object represents a part of the application: it contains its own data and logic
29+
- OOP is meant to make thinking about your applications easier, by having each object represent a real-life entity (i.e. Users, Profiles, Products)
30+
31+
**Show examples**
32+
33+
FIRST HALF (12.00 - 13.30)
34+
35+
3. How to use ES6 `classes`
36+
37+
Notes:
38+
39+
- `classes` are a modern way of creating objects in JavaScript
40+
- It's `syntactical sugar` for object constructors
41+
- A `class` is a blueprint of an object, that can be instantiated
42+
43+
**Do exercise**

0 commit comments

Comments
 (0)