Syntax error Unexpected token ILLEGAL but cant find it, help appreciated


function Person(name,age) { = 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 " + sally.age );


I was having the same problem, but was forgetting to add the ages at the end of the exercise. You should be okay once you add the ages. You have it set for sally's age to print out with Holden's information though. Maybe that's why you're getting an error, although it shouldn't be a syntax error because (unless I'm missing something) your code looks good otherwise.



++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser


Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


Thanks, I reset the code and pasted it back in and it worked.