всем привет, изучаю getter setter , подскажите почему не выводить имя в нижнем регистре?
class Employee {
constructor(name, age, salary) {
this.name = name;
this.age = age;
this.salary = salary;
}
get nameLowercase() {
return
this.name;
}
set nameLowercase(value) {
const nameToLowerCase = value.toLowerCase();
}
}
const employee = new Employee("Anton", 23, 23000);
console.log(employee.nameLowercase);