Exercise 1

Simple Button Function

The button has an onclick attribute that can be executed when the button is pressed.


Exercise 2

Javascript can change HTML attribute values. In this case we have changed the image of the light bulb to On/Off


Exercise 3

Javascript can also change the font of text

Javascript can do calculations on your fonts


Exercise 4

Javascript can hide and show elements


Exercise 5

A simple bouncing ball in a canvas


Exercise 6

Common HTML events