Pass function name in arguments

Discussion in 'JavaScript' started by Triexa, Apr 27, 2007.

  1. #1
    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?
     
    Triexa, Apr 27, 2007 IP