Intro to Function

DRY = Dont repeat yourself

Declare a function:

function nameOfFunction(parameter1, parameter2){
return parameter1 + parameter2;
}

Callback function

A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.