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
This game is getting to be so much fun that people want to play again as soon
as it's over. Sure, they could refresh the page. But we can make it even easier
with a "replay" button in the end game report.
director.js
Update the markup in the endgame report to include a <button>
element.
After setting the innerHTML for the endgame report, grab the new <button> element and add a "click" event listener that calls the countDown method.
That wasn't so bad, was it? Actually, there's another bug now. Pay close
attention to the score that gets reported when you play more than once using
the new "replay" button. Can you tell what's wrong? Can you fix it?
The text was updated successfully, but these errors were encountered:
This game is getting to be so much fun that people want to play again as soon
as it's over. Sure, they could refresh the page. But we can make it even easier
with a "replay" button in the end game report.
director.js
<button>
element.
innerHTML
for the endgame report, grab the new<button>
element and add a "click" event listener that calls thecountDown
method.That wasn't so bad, was it? Actually, there's another bug now. Pay close
attention to the score that gets reported when you play more than once using
the new "replay" button. Can you tell what's wrong? Can you fix it?
The text was updated successfully, but these errors were encountered: