diff --git a/consuming.html b/consuming.html index f356f4e..f66114a 100644 --- a/consuming.html +++ b/consuming.html @@ -9,5 +9,25 @@ - + +

Consuming Promises

+ Back to home +
+ + + + +
+
+

Results

+
+ + \ No newline at end of file diff --git a/creating.html b/creating.html index f356f4e..cf50adb 100644 --- a/creating.html +++ b/creating.html @@ -9,5 +9,31 @@ - + +

Creating Promises

+ Back to home +
+ + + + + + + +
+
+

Results

+
+ + \ No newline at end of file diff --git a/iterating.html b/iterating.html index f356f4e..e4960a4 100644 --- a/iterating.html +++ b/iterating.html @@ -9,5 +9,27 @@ - + +

Iterating with Async & Await

+ Back to home +
+ + + + + +
+
+

Results

+
+ + \ No newline at end of file diff --git a/src/consuming.mjs b/src/consuming.mjs index e69de29..2e24c07 100644 --- a/src/consuming.mjs +++ b/src/consuming.mjs @@ -0,0 +1,17 @@ +import setText from './results.mjs'; + +export function get(){ + setText('A'); +} + +export function getCatch(){ + setText('B'); +} + +export function chain(){ + setText('C'); +} + +export function final(){ + setText('D'); +} \ No newline at end of file diff --git a/src/creating.mjs b/src/creating.mjs index e69de29..240a967 100644 --- a/src/creating.mjs +++ b/src/creating.mjs @@ -0,0 +1,29 @@ +import setText from './results.mjs'; + +export function timeout(){ + setText('A'); +} + +export function interval(){ + setText('B'); +} + +export function clearInterval(){ + setText('C'); +} + +export function xhr(){ + setText('D'); +} + +export function allPromises(){ + setText('E'); +} + +export function allSettled(){ + setText('F'); +} + +export function race(){ + setText('G'); +} \ No newline at end of file diff --git a/src/iterating.mjs b/src/iterating.mjs index e69de29..2285db2 100644 --- a/src/iterating.mjs +++ b/src/iterating.mjs @@ -0,0 +1,23 @@ +import setText from './results.mjs'; + +export function get(){ + setText('A'); +} + +export function getCatch(){ + setText('B'); +} + +export function chain(){ + setText('C'); +} + +export function concurrent(){ + setText('D'); +} + +export function parallel(){ + setText('E'); +} + + diff --git a/understanding.html b/understanding.html index 0bd46a6..86f3a4d 100644 --- a/understanding.html +++ b/understanding.html @@ -15,6 +15,7 @@

Understanding Promises

+ Back to home