Https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/override-inherited-methods

Https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/override-inherited-methods
0

#1
// please assist me in check whats wrong with my code...i could pass the challenge with my code
function Bird() { }

Bird.prototype.fly = function() { return "I am flying!"; };

function Penguin() { }
Penguin.prototype = Object.create(Bird.prototype);
Penguin.prototype.constructor = Penguin;

// Add your code below this line

penguin.prototype.fly = function() {
    return "Alas, this ia a flightless bird.";
}


// Add your code above this line

let penguin = new Penguin();
console.log(penguin.fly());

#2

please post a link to the specific challenge you are trying to pass


#3

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/object-oriented-programming/override-inherited-methods


#4

Your mistakes are here.

Penguin.prototype.fly = function() {
    return "Alas, this is a flightless bird.";
}

Compare your part of code and this one.
Be careful.


#5

i have seen the errors…typo error and case error too…thankssssss