Assessment wanted for Sequencing animations by me

Hello, I’m simply looking for an assessment of the JavaScript code which I’ve written to sequence the animations sequentially.

I uploaded my files to CodePen.

The link to the MDN Assessment page is here.

Hi @James_Compagnoni and welcome to the community :wave:

Congratulations! All your versions work as requested.

Instead of the destructuring assignment you could also just directly use - for example - alice1AnimationObj.finished.
For the second example to make it even simpler we have to remember that the result from the last line is also automatically the return value of an arrow function. SInce we only have one line we can even remove the curly braces:

  .then(() => alice2.animate(aliceTumbling, aliceTiming).finished)
  .then(() => alice3.animate(aliceTumbling, aliceTiming).finished)
  .then(() => console.log('All animations complete!'));

But of course there’s nothing wrong with your longer versions. Just another alternative. :slightly_smiling_face:

I hope that helps,

Hi Michael, thanks for your time and response. I appreciate the feedback.

1 Like