Not understanding the question


#1


Exercise 23


I don't understand what I'm supposed to do here. I'm getting this error: "TypeError: Cannot read property 'species' 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

from the instructions;

Create a new object called sally using the Person construction

the hint is actually in the instructions, you need the new keyword to create a new Person


#3

Thanks that sorted it out!


#4