More options


#1


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


Oops, try again. Your code threw the following error when holden'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 = new Person("Sally Bowles",39);
var holden = new 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

Capitalization is important. Is it person? or Person?


#3

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