(function() {
  //do stuff
})();
EDIT: I originally thought this construct was called a closure - not that the effect that it caused results (potentially) in a closure - if variables are captured.
This is in no way to do with the behaviour of closures themselves - this I understand fully and was not what was being asked.
 
     
     
     
    