0

Possible Duplicate:
What does the exclamation mark do before the function?

While looking through the Bootstrap plugins I see they encapulate their code with

!function ($) {
  // ....
} (window.jQuery);

rather than the

(function ($) {
  // ....
} (window.jQuery));

I'm more familiar with. Can some one explain the rationale behind this syntax. Thanks,

Community
  • 1
  • 1
paulb
  • 493
  • 1
  • 4
  • 6

0 Answers0