0

maybe a dumb question but can't find it. Is it possible to call a function (just like in php) dynamic.

php:

$data = new {$dynamic};

javascript:

var data = something.{dynamic}.getData(); //<-- this is not working

Is there anyway to do this in javascript?

Wim Pruiksma
  • 590
  • 4
  • 19

0 Answers0