A function is a reusable block of code that groups together a sequence of statements to perform a specific task.
One way to create a function is by using a function declaration.
The code inside a function body runs, or executes, only when the function is called.
To call a function in your code, you type the function name followed by parentheses.
function calculateArea(length, width){
console.log(length * width);
}When calling a function that has parameters, we specify the values in the parentheses that follow the function name.
The values that are passed to the function when it is called are called arguments. Arguments can be passed to the function as values or variables.
Go to freecodecamp and work on the code challenges on functions to understand how to use them well.
** The End **