I don’t know what is the problem can someone help me out here.
// Write an event handler function called onHear
// Complete the onHear function
function onHear(event) {
// The pet should say something in onHear.
pet.on(“spawn”, onSpawn);
pet.on(“hear”, onHear);
pet.say(“yes”);
pet.say(“yes”);
pet.say(“5”);
pet.say(“Orange and White”);
pet.say (“Anything Meaty”)
}
hero.say(“Do you understand me?”);
pet.say(“yes”);
hero.say(“Are you a cougar?”);
pet.say(“yes”);
hero.say(“How old are you?”);
pet.say(“5”);
// Ask two more questions.
hero.say(“What color is your fur”);
pet.say(“Orange and White”);
hero.say(“What food do you like to eat”);
pet.say (“Anything Meaty”)