CODING means telling a computer what do to in a language it can understand. Let's code!

Your browswer does not support HTML5 canvas. Try another browser.

A SEQUENCE is a list of instructions in order. This game is controlled by a list of instructions in JavaScript. To see it, right click (or ctrl click) on this page and select "Show Page Source". Choose demoGame.js from the list.

An EVENT is when something happens. The red block moves WHEN you press the arrow keys.

A LOOP is code that repeats. The blue blocks keep falling over and over. Their movement is inside a LOOP.

A VARIABLE is a holder for a number. The score keeps track of your points, which is a number that changes over time.

A CONDITIONAL checks if something is true. IF a blue block touches the red block THEN it disappears and you score a point.