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: javascript3/week2/lesson-plan.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,12 @@ This class is a little poor on real world examples. Make a PR if you ahve any go
39
39
- Creation
40
40
-[Code inspiration](#promise-creation)
41
41
-[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.
43
46
-[Code inspiration](#reason-for-promise)
44
47
- Reason for promise: https://mobile.twitter.com/addyosmani/status/1097035418657144832?s=19
45
-
-`Promise.all` - Let students investigate
46
-
-`Promise.race`
47
48
-[Exercises 5](#exercise-5) and [Exercises 6](#exercise-6)
48
49
49
50
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()
315
316
The above example show how to consume the promise using promises. Now try consume the `getLoggedInUsers` using async/await
316
317
317
318
## Exercise 5
318
-
Using chaining
319
+
Using async await
319
320
320
321
1. Fetch the astronauts
321
322
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