
Mission 2: Snake
In Mission 2, you are going to code your own version of a Snake game. You will use JavaScript to make the snake move and the fruit appear on the board, and you will learn how to use a new HTML element called <canvas> to create 2D graphics. You will organize your code with object literals and arrays, learn how to make your game tick, and you will find out how to add and process keyboard input so that you can control your snake.
By the end of the mission, you will be able to play your own Snake game!

Do it yourself task:Your finished game
Get the finished code for your game.