Sure! Here's a simple car racing game implemented as a single HTML file using JavaScript:
To play the game, you can copy the above code into a new HTML file and open it in a web browser. Use the left and right arrow keys to control the car and avoid colliding with the obstacles. The game will display your score, and when a collision occurs, it will show a game over message with your final score.
Please note that this is a very basic implementation and can be further enhanced with additional features and graphics based on your requirements.