Wierd Error


#1



https://www.codecademy.com/courses/objects-ii/0/1?curriculum_id=506324b3a7dffd00020bf661#


SyntaxError: Unexpected identifier


var james = {
    // add properties to this object!
    job: "programmer"
    married: false
};

function Person(job, married) {
    this.job = job;
    this.married = married;
}

// create a "gabby" object using the Person constructor!
var gabby = new Person("student", true);


#2

These two statements should have commas after them.


#3

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