Possible Duplicate:
!function(){ }() vs (function(){ })()
It is fairly standard common practice to write Js code like this:
function ($) {
...
}(jQuery)
I saw somebody using an exclamation mark first: ! function($)...
What does it actually mean, and what is that good for?
Example from Twitter Bootstrap (code retrieved 2012-03-07):
!function ($) {
$(function(){
...
})
}(window.jQuery)