Wierd Error



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);


These two statements should have commas after them.


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