23/33


#1

Hey, I have compared with other sections and other topics. Could anyone else figure out why I am getting this error: "SyntaxError: Unexpected token )" It seems to be correct but I am unsure, maybe I am missing something. Thanks!

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


#2

@halfback37,

You either
expand your console.log() argument with sally.age
like

 console.log("sally's species is " + sally.species + " and she is " + sally.age);

or
you remove the +-sign
like

 console.log("sally's species is " + sally.species + " and she is ");

#3

Hope it helps ( :

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


#4

Thanks everyone. With your help and going over it a second time I did notice the error. They set it up to contain the + so that you could change it. Which caused the problem.

My bad!