class Language { getClassName() { return this.constructor.name; } } const l1 = new Language (); const objClassName = l1.getClassName(); console.log(objClassName);