For example I have a class called Daah, I'd like to instantiate it using a dynamic string variable:
class Daah{
}
var classname = "Daah";
var obj = new window[classname];
I thought this would work but returns undefined. Is there a way to dynamically create constructors?