How do I make JavaScript Object using a variable String to define the class name?

Would it work if you did something like this:

var myObject = window[classNameString];

..?

Leave a Comment