so I have a array of functions like this one:
var functions = [
func1 = function(){ ... },
func2 = function(){ ... },
func3 = function(){ ... }
] ;
If I call a function like functions[func1]() it works, but if I call it like functions['func1']() it doesn't.
What's the difference?
And how can I call a function using the 2nd method (match the function name with a string)?