basics of a javascript board game

Clicking on any one of the squares changes the colors of all three.

This is a simple example demonstrating one way that HTML, CSS, and JavaScript can be used to make an interactive board game.