23: More Options. error: "age not defined"


#1



https://www.codecademy.com/en/courses/spencer-sandbox/3/4?curriculum_id=506324b3a7dffd00020bf661#


What am I missing here?


function Person(name,age) {
  this.name = name;
  this.age = age;
  this.species = "Homo Sapiens";
}

var sally = new Person ('Sally Bowles', 39);
var holden = new Person ('Holden Caulfield', 16);
console.log("sally's species is " + sally.species + " and she is " + age + ".");
console.log("holden's species is " + holden.species + " and he is " + age + "." );


#2

What you forgot to do was include the person's name in front of the age as in sally.age in the console.log.


#3

that did the trick thanks sooo much Marc!!


#4

@theantonio,

You will want to use sally's age with sally.age
or holden's age with holden.age


#5

in your console.log, your age should really be sally.age and holden.age