Intro to Objects 1: more options


#1



It says Syntax Error: Unexpected Token )
I do not see a problem with my code


unction 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 " + );
console.log("holden's species is " + holden.species + " and he is " + );


#2

So you seem to have not included their specific ages in your console.logs after the plus signs. Try adding in the appropriate ages to each person's console.log and that should solve your problem.


#3

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