Example 1 Define Function Takes Argument Call Function Identify Code Argument Code Paramet Q37087346

Example 1: Define a function that takes an argument. Call thefunction. Identify what code is the argument and what code is theparameter.

Example 2: Call your function from Example 1 three times withdifferent kinds of arguments: a value, a variable, and anexpression. Identify which kind of argument is which.

Example 3: Create a function with a local variable. Show whathappens when you try to use that variable outside the function.Explain the results.

Example 4: Create a function that takes an argument. Give thefunction parameter a unique name. Show what happens when you try touse that parameter name outside the function. Explain theresults.

Example 5:

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.