1. An Objective Review


#1


SyntaxError: Unexpected token

Why is there a unexpected token, it doesn't even show which one


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

var james = {
    job: "programmer",
    married: false; // Unexpected token
};

you typed a ; instead of a ,


#3

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