At the beginning of the bootstrap.js code file they have this
!function($) {
what does it mean?
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.
If you code this:
function something() {something}, it’s a declaration of a function, but it does not invoke the function (you’d have to runsomething()later on).So, to actually invoke the function, you need to do something like
(function(){})();… “!function($) {}” is sort of an alternative to the wrapping the entire function in parens. The exclamation mark syntax is a shortcut to writing that. “!” turns the line into an expression that returnstrue.