Take a look at these great examples from Khan Academy all about JavaScript
You can also find lots of great resources about programming Javascript on Codecademy
One of my favourite resources for learning JavaScript is Code Combat