More Options


#1


I don't what's wrong with my code. Can you please help me ? It's really hard.


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 Caufield",16);
console.log("sally's species is " + sally.species + " and she is " + );
console.log("holden's species is " + holden.species + " and he is " + );


#2

You have misspelled the second name, it shold be Caulfield, with a l.

You are missing the end to these console.logs, it should be.

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);

#3

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