Quantcast
Channel: javascript can I get class from it's name? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

javascript can I get class from it's name?

$
0
0

I was wondering if there is a function in javascript that returns the class if we add a parameter,

for example :

myClass extends someClass{// My code here.}

and somewhere else I could do :

let class = getClass("MyClass");

Or I should do a registering process (like putting my class in an array...).

Thanks.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images