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

Skip to content

Commit 909455e

Browse files
authored
Update lesson-plan.md
1 parent 5212a4c commit 909455e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

javascript3/week2/lesson-plan.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ This class is a little poor on real world examples. Make a PR if you ahve any go
3939
- Creation
4040
- [Code inspiration](#promise-creation)
4141
- [Exercises 3](#exercise-3) and then [Exercises 4](#exercise-4)
42-
- Chaining. Calling `.then` returns a promise. Only get to here when they understand async/await and promise consumption and creation.
42+
- Async await
43+
- [Exercises 5](#exercise-5)
44+
- `Promise.all` - Let students investigate
45+
- Optional - Chaining. Calling `.then` returns a promise. Only get to here when they understand async/await and promise consumption and creation.
4346
- [Code inspiration](#reason-for-promise)
4447
- Reason for promise: https://mobile.twitter.com/addyosmani/status/1097035418657144832?s=19
45-
- `Promise.all` - Let students investigate
46-
- `Promise.race`
4748
- [Exercises 5](#exercise-5) and [Exercises 6](#exercise-6)
4849

4950
At this point good coding practices is starting to get very important! Check our [coding best practices](https://github.com/HackYourFuture-CPH/curriculum/blob/master/review/review-checklist.md#javascript) and use these both when live coding but also in reviews.
@@ -315,7 +316,7 @@ getLoggedInUsers()
315316
The above example show how to consume the promise using promises. Now try consume the `getLoggedInUsers` using async/await
316317

317318
## Exercise 5
318-
Using chaining
319+
Using async await
319320

320321
1. Fetch the astronauts
321322
2. After the astronauts has been fetched, fetch movies using [this api](https://gist.githubusercontent.com/pankaj28843/08f397fcea7c760a99206bcb0ae8d0a4/raw/02d8bc9ec9a73e463b13c44df77a87255def5ab9/movies.json)

0 commit comments

Comments
 (0)