I get stucked


#1



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


TypeError: Cannot read property 'species' of undefined

Oops, try again. Your code threw the following error when sally's name was checked: TypeError: Cannot read property 'name' of undefined


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

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


#2

Hi these line

var sally = Person("Sally Bowles",39);
var holden = Person("Holden Caulfield",16);

it's missing the word new before Person


#3

Thx I discovered the missing word just before to look on your message. :grinning: