Salesforce JavaScript-Developer-I Question Answer
Refer to the following code block:
class Animal{
constructor(name){
this.name = name;
}
makeSound(){
console.log(`${this.name} ismaking 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?
Salesforce JavaScript-Developer-I Summary
- Vendor: Salesforce
- Product: JavaScript-Developer-I
- Update on: Sep 18, 2025
- Questions: 219