You are on page 1of 1

/*write code below*/

class DOG{
constructor(name){
this._name = name;
};
introduce(){
console.log("This is " + this._name);
};
static bark(){
console.log("woof!");
};
};

var myDog = new DOG('muffy');


myDog.introduce();
DOG.bark();

You might also like