Cant see the mistake

function Animal() {} = function() {

console.log("nom nom nom");


function Dog() {}

// Add your code below this line

Dog.prototype = Object.create(Animal.prototype);

Dog.prototype.constructor = Dog;

Dog.prototype.bark = function() {



// Add your code above this line

let beagle = new Dog();; // Should print "nom nom nom"

beagle.bark(); // Should print "Woof!"

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Hi @emilionovillo2 !

When asking for help, you need to provide the link to the challenge so we know what you are working on.

In the future, you can use the Ask for help button which formats your code and provides the challenge link.

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