I started to figure it out with javascript template engines, and in the examples I see the following entry everywhere:
(function(){ this.var1 = function(){ }, this.var2 = function(){ }; return function(){ }; })(); Could someone tell me about it. What is it, what is needed, how is it used, what is the meaning of such a record?