Last week, my teacher and I collaborated on a fun game called rEAndom game (). The game is created using javascript, jQuery, and HTML5. One interesting feature of the game is that when you press the TAB key, a div displaying the score appears. You can check out the code for this feature on CodePen:
However, there are two main issues that I have encountered:
- After pressing and releasing the Tab key, the div with the score does not disappear as intended.
- Even though I tried to prevent the default behavior of the Tab key, it seems to be causing some strange effects on the page.