
Parameters are variables listed in the function definition that receive values when the function is called. The return statement sends a value back to whoever called the function. Without a return statement, a function returns undefined. A function should do one thing and return a clear, predictable result.
Reference:
TaskLoco™ — The Sticky Note GOAT