Functions
Q: What happens when you want to run the same piece / section of code several times throughout a program?
A: It's time for a function!
Functions let you create a special section of code that you want to be able to use later
A: It's time for a function!
Functions let you create a special section of code that you want to be able to use later
You have to create a function block before you can use it.
A functions has two parts:
A functions has two parts:
- definition block
- name block