How can I store functions in an array with named properties, so I can call like
FunctionArray["DoThis"]
or even
Function
You even can use a function as the name of the property:
var func = function(a, b){alert(a+b)}; var obj = {}; obj[func] = 2;