Example Functions

Author: Michael E. Locasto
File: simplefunc.html
Date: February 23, 2006
Summary: The purpose of this program is to demonsrate how to write, format, and invoke Javascript functions. Future work: what is the bug in this code? how would we program gcd? abs? max(a,b)? min(a,b)? random()? a function that finds a given substring in a string? ... indexOf(). Need to specify input, process, output...