I need to create a function with variable number of parameters using new Function() constructor. Something like this:
new Function()
args = [\'a\', \'b\']; bod
function construct(){ this.subFunction=function(a,b){ ... } } var globalVar=new construct();
vs.
var globalVar=new function (){ this.subFunction=function(a,b){ ... } }
I prefer the second version if there are sub functions.