Keyword | Definition |
---|---|
Function | a subprogram that can receive zero or more parameters and always returns a value |
Parameter | data passed into a subprogram that affects how it works. Treated as a local variable within that subprogram |
Procedure | a subprogram that can receive zero or more parameters but never returns a value |
Subprogram | a named section of code that can be reused (procedure or function) |