Sometimes I see JavaScript that is written with an argument provided that already has a set value or is an object with methods. Take this jQuery example for instance:
Here's a example of passing parameters into anonymous function
var a = 'hello'; // Crockford (function(a){alert(a)}(a)); // Others (function(a){alert(a)})(a);
It uses closure, since it's an anonymous function (it actually all depends how you wrote it)