What is a function in JavaScript?
block of lines of code that you can call to run the code
Describe the parts of a function definition.
function keyword name of function(paramaters) {
code};
Describe the parts of a function call.
function name(argument)
When comparing them side-by-side, what are the differences between a function call and a function definition?
not function keyword, and passing arguments for function call
What is the difference between a parameter and an argument?
parameter is placeholder, argument has value
Why are function parameters useful?
we can pass data into functions
What two effects does a return statement have on the behavior of a function?