JavaScript Add Methods After Inheritance challenge

The challenge doesn’t seem to be working anymore. Pressing “Run the Tests” gives no feedback.

@mgh0, Already tried refreshing your browser?

I’ve tried to complete the challenge from 2 different computers and with 3 different browsers (Mozilla, Chrome and Edge). The other challenges work just fine.

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/add-methods-after-inheritance

Thank you! This is what i’ve tried, but it doesn’t really matter what I type, because I’m not getting any response from the page.


function Animal() { }
Animal.prototype.eat = 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.bark() = function() {
    console.log("Woof!");
}


// Add your code above this line

let beagle = new Dog();

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