Excellent explanation. Thank you.
On Jun 23, 8:28 am, Scott Sauyet li...@sauyet.com wrote:
jerome wrote:
(function(){
...
})();
How is this basic to understanding how jQuery works, and how
JavaScript works?
The basic idea is that global variables are evil. This technique moves
since jquery is _javascript_, and probably the best reference on the web
for learning _javascript_ ( and many other languages) is
w3schools.com try this link:
http://www.w3schools.com/js/js_functions.asp
hard to beat their explanations and "try it yourself" examples
jerome wrote:
I
jerome wrote:
(function(){
...
})();
How is this basic to understanding how jQuery works, and how
JavaScript works?
The basic idea is that global variables are evil. This technique moves
what would otherwise be global variables into a closure [1], removing
them from the global scope. For
3 matches
Mail list logo