No, a closure is rather something along these lines:
function outer()
{
var variables_local_to_outer;
function inner()
{
// do stuff using variables_local_to_outer
}
return inner;
}
var closure = outer();
the closure retains a reference to the variables local to the function that returned it.
Edit: You can of course create a closure using anonymous functions:
var closure = (function(){
var data_private_to_the_closure;
return function() {
// do stuff with data_private_to_the_closure
}
})();