6.3: understand the concept of passing data into and out of subprograms (procedures, functions)
| Keyword | Definition |
|---|---|
| call | make a procedure or function actually run |
| function | type of subprogram which is a section of code with a name that can be re-used. Always returns a value |
| parameter | a value that is passed to a subprogram by the part of the code which calls the procedure or function |
| procedure | type of subprogram which is a section of code with a name that can be re-used. Doesn't return a value. |
| return | go back from a procedure or function to the part of the program that called it |
| return value | data that is passed back from a procedure or function to the part of the program that called it |