I have the following class
class MyClass {
constructor() {
}
doIt() {
var i = 10;
}
}
How, can I get the name of the class (string "MyClass") without creating instance of this class? I tried:
console.log(MyClass);
console.log(MyClass.constructor);
console.log(MyClass.constructor.name);
But can't get what I need.