23/33 SyntaxError: Unexpected token )


#1

I keep getting the same error message. This is my code.

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

here:

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

and she is what? Maybe a certain age?


#3

oh okay so I'm also making changes to the console.log sentences to add in sally's age & name?


#4

from the instructions;

Edit the sentence printed out such that it includes the age of sally and holden respectively.

the sentence printed out is done by console.log(), so yea, you need to modify it to also print out the age of sally and holden.


#5

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