Possible Duplicate:
JavaScript: Why the anonymous function wrapper?
I read the code of some JavaScript libraries, and found in some js files there are such statements:
;(function(){
})();
I've got a few questions :
- What the code does?
- Why the code is designed in such way?
- How to invoke functions defined in the code?