I would like to get the parent class name (Parent
), but I'm only able to retrieve the child class name with this code (Child
)...
'use strict';
class Parent {
}
class Child extends Parent {
}
var instance = new Child();
console.log(instance.constructor.name);
Is it possible ?
Thanks !