23/33 Need Help!


#1

I get SyntaxError: Unexpected token .

Donno what's wrong!Please help...

function Person(name,age) {
this.name = name;
this.age = age;
this.species = "Homo Sapiens";
}

var.new Person = ("Sally bowels",39);
var.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+ );


#2

Look at +-sign at the end....
console.log("holden's species is " + holden.species + " and he is " +holden.age**+** );


#3

Thank you Leonhard! I fixed what you pointed out,but there is still something that prevents the code from working...


#4

In the code-lines

var.new Person = ("Sally bowels",39);

you are prepending the new-keyword with a dot
replace the dot with a space-character, leaving you with

var new Person = ("Sally bowels",39);


#5

code should be like
var sally = new Person ("Sally Bowles",39);
var holden = new Person ("Holden Caulfield", 16);