Functions are blocks of code that can be named and reused.
Here’s how to declare a function:
There’s a lot going on in the example above, so let’s look at each part individually.
Once a function is defined, you can use it by referencing its name with parentheses () right after.
Note that a function doesn’t have to have parameters.
If a function _does_ have parameters, you’ll need to provide values inside the parentheses when using the function.