The best way to improve your ability in any programming language is to study examples. You wouldn't try and learn to write a foreign language without also reading a lot of examples written in that language. Programming is no different.
Although it is usually good practice to minimize your scripts, removing comments and unnecessary white space, I have not adopted this approach here. Because I hope you will learn from these examples I have also included extensive comments throughout.
The hangman game is a classic word game. This example works through the design process and a stage by stage implementation so it is easy to see the thinking behind the design and how the application develops.
This application simulates the operation of a logic circuit to control a seven segment LED. It contains a lot of discussion of the architecture of the solution so, although it's a relatively complex program, it's a good example of how to design and structure an application.
Animating Background Colour Fade
This example uses timers to fade the background colour of a div. This is a useful introduction to the more complex use of timers and events in the slideshow discussed below.
Event-Driven Slide Show