Programming - Concept
Function
A named block of code that performs a particular job when called
What's it for?
Packages a piece of work so it can be reused instead of writing the same instructions repeatedly.
For example…
A shopping app uses a function called calculateDelivery whenever it needs to work out the delivery charge