What we'll cover in this chapter:
Breaking down tasks into subtasks and using functions to structure your code
Understanding the difference between anonymous and named functions
Using functions to recycle blocks of script
Using arguments and returning results
Making functions more robust through typing
Building the dynamic graphics for the Futuremedia site
As you've seen, the ability to handle information in your movies opens up a lot of possibilities. A few chapters back, we introduced variables as containers for data, whether that data is in the form of a string, a number, or a true or false Boolean value. We also covered arrays, which let you store lots of variables under a single name.
Variables and ...