logo

Crowdly

Browser

Add to Chrome

Що виведе цей код? class Animal { speak() { return 'Some sound'; } ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Що виведе цей код?
 class Animal {

speak() {

return 'Some sound';

}

}

class Dog extends Animal {

speak() {

return 'Woof!';

}

}

class Cat extends Animal {

speak() {

return 'Meow!';

}

}

const animals = [new Dog(), new Cat(), new Animal()];

animals.forEach(a =\> console.log(a.speak()));

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on elr.tnpu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome