freeCodeCamp Challenge Guide: Override Inherited Methods

Override Inherited Methods


Solutions

Solution 1 (Click to Show/Hide)
Penguin.prototype.fly = function() {
  return "Alas, this is a flightless bird.";
};
3 Likes