Object review


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

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.


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


Got it, Thanks, buddy!

Code :

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


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