In This Chapter
Working with built-in functions
Using the Math object functions
Creating your own functions
Understanding how to create private data
Math object. After that, you begin creating your own custom functions.
This chapter introduces you to some new concepts when it comes to functions. For example, you discover the best time to separate code into a new function rather than keeping it part of an existing function. You also find some techniques for passing both required and optional parameters (arguments) to functions and returning data to the caller.