There are a couple of different methods for creating functions in JavaScript. The two examples below will do the exact same thing.


var functionName = function(parameters) {...}
function...