Sure, here's an example of a simple car racing game implemented as a single HTML file using JavaScript:
In this game, you control a red car using the left and right arrow keys. The objective is to avoid colliding with the blue and yellow cars. The game keeps track of your score, which increases as you avoid collisions. If a collision occurs, a "Game Over" message will be displayed with your final score.