28/30 Hello? Yes, This is Dog. Strange happenings


So, I believe my code is correct. It's printing the correct sentences to the console, but does not pass.

However, when I try this code, it passes, but doesn't print.

Is this something I'm doing wrong or a bug?

I've also tried refreshing the page a few times and still have the same results.


Hi the first code is fine just try to remove the dot "." after dog inside the console.log


Oh great!
Proper punctuation foils me again! :expressionless:

Thank you.


i wrote it just like you did and it gaves me an error, but i refreshed de page and it worked!!



Dog.prototype.sayHello = function() {
console.log("Hello this is a " + (this.breed) + " dog");