Lesson 23 can you help with this code?


#1

Hi,

I get "SyntaxError: Unexpected token )" when I run this, and I can't find what I need to change. It seems to not like the ) at the end of "function Person(name,age)".

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("Let me introduce you to " + sally.name + "sally's species is " + sally.species + " and she is " + sally.age +);
console.log("this is" + holden.name + "holden's species is " + holden.species + " and he is " + holden.age +);


#2

after sally.age and holden.age there is no need to have a + unless you are planning to add more string content:

sally.age + ".");

or:

sally.age);

if you just want the sentence to end