class Cat {
constructor() {
this.name = "Zhora";
}
static meow() {
return "Meow!";
}
}
const myCat = new Cat();
console.log(myCat.meow());WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers class Cat {
constructor() {
this.name = "Zhora";
}
static meow() {
return "Meow!";
}
}
const myCat = new Cat();
console.log(myCat.meow());