Examples of many ways to create a function. Codecademy course notes.
A function is a reusable block of code that groups together a sequence of statements to perform a specific task.
A parameter is a named variable inside a function’s block which will be assigned the value of the argument passed in when the function is invoked.