What will happen when executing the following code?
class Animal {
speak() {
return 'I speak';
}
}
const animal = new Animal();
console.log(animal.speak());
What will happen when executing the following code?
class Animal {
speak() {
return 'I speak';
}
}
const animal = new Animal();
console.log(animal.speak());