When working in a browser environment like Firefox 60+, I've encountered an issue while attempting to retrieve a class from the global window object:
class c{};
console.log(window.c); // undefined
This is peculiar, as for any other declaration, it works fine:
var foo = "bar";
console.log(window.foo); // bar
I'm wondering where I can access a declared class within the global object. For example, if I want to create an instance of a class using the class name stored in another variable.
Your insights are appreciated.