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: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,7 @@ Oops... Die rolled off the table
205
205
206
206
Since we want to practice with promises anyway, let's see what happens when we refactor the code to use promises:
207
207
208
-
#### Instructions - ex3
208
+
#### Instructions ex3
209
209
210
210
- Run the unmodified program and confirm that the problem as described can be reproduced.
211
211
-**TODO#1**: Refactor the `rollDie()` function from using a callback to returning a promise.
@@ -227,7 +227,7 @@ In this exercise we have provided a ready-made `rollDie()` function for you that
227
227
228
228
We have also provided some code that demonstrates how to handle throwing a single die. For this exercise you should do the following.
229
229
230
-
#### Instructions - ex4
230
+
#### Instructions ex4
231
231
232
232
-**TODO#1**: Refactor the `rollDice()` function to throw five dice in one go, by using `.map()` on the `dice` array to create an array of promises for use with `Promise.all()`.
233
233
- A successful (i.e. resolved) throw should output a message similar to:
0 commit comments