Object review


#1

Introduction to objects II
Can anyone point out what's wrong with my code? Thanks in advance.

Code:
var james = {
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);

Error: Unexpected token.


#2

We use commas in object literals, semi-colons in constructors.


#3

Got it, Thanks, buddy!

Code :

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

#4

You're welcome. Something to add to your check list as you progress.