Exercise to practice some basic javascript techniques