Monday, August 8, 2011

Chapter 2, question 4

4.  What is a function?

A function is a sequence of code that is enclosed in curly braces { like this } and given a name.  It may or may not take one or more parameters, and it may or may not return a value to whichever piece of code calls the function.

No comments:

Post a Comment