CRT-600 practice question 10 of 30

Refer to the following code block: class Animal{ constructor(name){ this.name = name; } makeSound(){ console.log(`${this.name} is making a sound.`) }…

Choose your answer, then check it against the explanation.

Refer to the following code block: class Animal{ constructor(name){ this.name = name; } makeSound(){ console.log(`${this.name} is making a sound.`) } } class Dog extends Animal{ constructor(name){ super(name) this.name = name; } makeSound(){ console.log(`${this.name} is barking.`) } } let myDog = new Dog('Puppy'); myDog.makeSound(); What is the console output?
Answer options
Question 10 of 30

Keep practicing

Take the free CRT-600 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other CRT-600 practice questions

Scroll to Top