Sure! Here's a simple car racing game implemented as a single HTML file using JavaScript and enclosed in script tags:
You can save this code as a .html file and open it in your web browser to play the car racing game. The game will be displayed in a smartphone-friendly manner with a car controlled by arrow keys. The objective is to avoid the green obstacles moving downwards from the top of the screen. Each successfully avoided obstacle increases the player's score. The game ends if the car collides with any obstacle, and the final score is displayed. You can enjoy the game by playing it on your smartphone.