23. Says I am not using Person constructor for sally


#1

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

var sally = new Object ();
sally.name = "Sally Bowles";
sally.age = 39;
sally.species = "Homo Sapiens";
var holden = new Object();
holden.name = "Holden Caulfield";
holden.age = 16;
holden.species = "Homo Sapiens";
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

Sally and Holden shouldn't be new Object()

they should be new Person("sally", 39)


#3

Thank you for the help :smile: