Link to home
Start Free TrialLog in
Avatar of dshrenik
dshrenikFlag for United States of America

asked on

Javascript function name stored in a variable

I have as javascript function name stored in a variable:
var fName = "getInfo()";

Please let me know how I can use it to retrieve a value like this:
this.listingsData[0].getInfo();

I want to use fName to do the same job.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of mapeck65
mapeck65

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial