Why do you need to invoke an anonymous function on the same line?
I was reading some posts about closures and saw this everywhere, but there is no clear explanation how it works – everytime I was just told to use it…: // Create a new anonymous function, to use as a wrapper (function(){ // The variable that would, normally, be global var msg = “Thanks for visiting!”; … Read more