Read the short tutorials in the following:

JS Functions
Function Definitions
Callback and Anonymous Functions

Click here for a short video covering most of the material in the readings