Promise version of callback hell
Chaining promises
Async await
Great work! All three versions are correct.
In version 3 you don’t even have to assign the values to variables. Just
await alice1.animate(aliceTumbling, aliceTiming).finished;
and so on is fine.
Which version do you like best?
Have a nice day,
Michael
1 Like
Yes! I like your solution better🤯 it relies on the order of execution in an explicit way, whereas in mine, I actually had to stop and reason about why it worked with variable declarations
Thanks, but I rather meant of the the three versions you have created for this exercise.