Closed RazvanBugoi closed 4 years ago
class Animal {
constructor(name, type) {
this.type = type;
this.name = name;
}
toString() {
return `${this.name} is a ${this.type}`;
}
};
It works fine when I test it in the console.
https://www.codewars.com/kata/513e1e47c600c93cef000001/train/javascript