He||o? Yes, This is Dog


This is a major problem it giving me a censored word "He||" and this
code has he||o everywhere so, I will change he||o to bye, you can change
it back to he||o
Everytime you see bye even in console it means He||o. Yea it also applies for
title xD

function Dog(breed) {
this.breed = breed;

// add the saybye method to the Dog class
// so all dogs now can say hel|o i had to so that because it censored he||o
Dog.prototype = {
saybye: function() {
console.log("bye this is a " + this.breed + "dog")


var yourDog = new Dog("golden retriever");

var myDog = new Dog("dachshund");

Its giving the results that it needs to finish the "level"
bye this is a golden retrieverdog
bye this is a dachshunddog

Error: Oops, try again. It appears that your saybye method doesn't properly log to the console 'bye this is a [breed] dog' where [breed] is the breed of the Dog.


not sure if this helps but I think you need to have a space in front of dog and " like you have a space after 'a' and ".

console.log("bye this is a " + this.breed + " dog")


I tried to do that but nothing


Maybe because you're using 'he||o' and not 'hello'


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.