JavaScript Exercise 2 for Mark McKelvy