When you write new function() { ... }, you create an anonymous function, and then immediately call it in the expression new.
The result of this expression is an object - an instance of a class created by an anonymous function.
It is equivalent
var anonymous = function() { ... };
this.Execute = new anonymous;
SLaks source
share