Example 3 from Chapter 1

References
Wilton, P., & McPeak, J. (2010). Beginning JavaScript (4th Edition
ed.). Wiley Publishing, Inc. .