// Wieśniak chcę wiedzieć jak Kotek ma na imię.

// Use this function as the handler for "hear" events.
function sayName(event) {
    // Zwierzak wypowie to w kolejności gdy ta funkcja zostanie wywołana.
    pet.say("My name is Furious Beast.");
    pet.say("Lecz moi przyjaciele mówią mi  Kiciu.");


}
// Use pet.on("eventName", functionName) to add an event listener to your pet.
// In this case use "hear" and sayName with pet.on()!
pet.on("hear", sayName);

// Teraz nie musisz nic mówić.
// Chłop będzie mówił.

 

Projektuję strony www Lublin na Joomla i WordPress

Codecombat - buddys name a - Imię kumpla A - JavaScript