Simple Button Function
The button has an onclick attribute that can be executed when the button is pressed.
Javascript can change HTML attribute values. In this case we have changed the image of the light bulb to On/Off
Javascript can also change the font of text
Javascript can do calculations on your fonts
Javascript can hide and show elements
A simple bouncing ball in a canvas
Common HTML events