in the last few days i'm interesting in anonymous function in javascript , so i started to "explore" frameworks such as jquery , in the very first line i saw this piece of code :
var jQuery = (function() { .. functions .. }();
and a question came in mind - what is the purpose of that code? why a variable contain anonymous function? what is the uses with that var? is it kind of function container or something? if it is how to access the functions?