What is a function?
A function is the name of a job. When you call the name, that job runs again. You do not copy the same code everywhere.
- You can pass data in, such as a city name.
- When the job ends it can return a result, such as the time.
- A clear name makes the code readable.