Say I wanted to call a function like so

doSomething('test', "aFunction");

how could I have the doSomething function later called aFunction, or whatever was passed?