Create a web app that features dynamically updated HTML powered by JavaScript code
- HTML
- CSS
- JavaScript
- I enjoyed styling the page and making it responsive.
- I figured out solutiosn to most (bit not all) of the challenges that I encounted, which was a satisfying experience.
- Please comment on the general code structure. How can it be optimized?
- Is there a better way to track wins and losses to trigger the
gameEnd()
? - How can I remove an
eventListener
in thegameEnd()
function to prevent additional user input? When I tried usingpreventDefault()
andstopPropagation
, game stopped responding to user input during the next round.