Object Oriented Programming - Use Inheritance So You Don't Repeat Yourself

Tell us what’s happening:
Describe your issue in detail here.

its not really an issue . i don`t understand where the link between animals and cat or bear in this lesson
Your code so far

function Cat(name) {
this.name = name;

Cat.prototype = {
constructor: Cat,


function Bear(name) {
this.name = name;

Bear.prototype = {
constructor: Bear,


function Animal() { }

Animal.prototype = {
constructor: Animal,
eat: function() {
  console.log("nom nom nom");

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Object Oriented Programming - Use Inheritance So You Don’t Repeat Yourself

Link to the challenge:

The concept of inheritance is described in couple consecutive steps.
I suggest you to go to the next step, there will be answer to your question.
If not, let me know.

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