Is there a JavaScript equivalent of Java\'s class.getName()?
class.getName()
Use class.name. This also works with function.name.
class.name
function.name
class TestA {} console.log(TestA.name); // "TestA" function TestB() {} console.log(TestB.name); // "TestB"