Sure! Here's a simple implementation of the Snake game using JavaScript and HTML. You can play it directly by saving the code in a single HTML file and opening it in a web browser.
This implementation creates a game board with a snake and a randomly generated food item. You can control the snake's direction using the arrow keys. The game ends when the snake hits the walls or collides with itself.
I hope you enjoy playing the Snake game!