Snake game in JavaScript (110 lines of code)

In this article I will build a simple snake game in JavaScript from scratch. The player can control the snake by keyboard. Whenever the snake collides with food(a red circle), it gets 1 point and food moves to  a random position. 

You can view the finished application here. The requirements for this application are basic knowledge of html, JavaScript and some prior knowledge of html canvas.

Sketchpad in JavaScript from scratch

In this article we will be building a simple sketch pad application in JavaScript from scratch. It will have a brush and eraser with variable size. For simplicity, lets limit it to draw and erase. The finished application can be viewed here.

The requirements for this application are basic knowledge of html and JavaScript.