Functions allow you to extend the language and create new commands. Functions allow you to give names to blocks of code that can then be executed at any time by calling the function. Thus each function name becomes a new command available to the program. Self-test Activity 7 1. It is a variable that exists only within any one function.
Global variables exist everywhere in the program.
This means where the variable is accessible or where it exists. They can't be accidentally changed by other parts of the program, because they don't exist there. Your program should contain code that looks pretty much like this. Perhaps the hardest part may be remembering that properties are assigned with an equal sign. Still, you can see that a few very minor changes can allow your code to accomplish a vastly different task.