An override must use the same method name.
Acceptance criteria
- 1.#out should show woof.
An override must use the same method name.
class Animal { speak() { return "some sound"; } } class Dog extends Animal { bark() { return "woof"; } } document.querySelector('#out').textContent = new Dog().speak();
Output ready when you are
Press Run to render your code, or Submit to validate your solution.