Video 8: Functions (page 6 of 9) |
An argument is a value we pass to the function as its input when we call the function. Arguments are stored in the function's parameters.
We use arguments so we can direct the function to do different kinds of work when we call it.
We put the arguments in parentheses after the name of the function when we are calling the function.