Possible Duplicate:
What does the exclamation mark do before the function?
What’s the point of the ! in the snippet bellow?
!function ($) {
// code
}(window.jQuery);
This syntax is used extensively in Twitter’s bootstrap.js
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
they are calling the function right after the declaration (with window.jQuery as a parameter)
another syntax is:
some people care more about one character than readability