I am not getting where the error is please help


#1

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

Hi @vinayakkad

  • You have to change ";" to "," (line 3)
  • You have to delete ";' (line 4)

Read one more time the lesson who speaks about how to declare an object.

Hold on :wink:


#3

thanks a ton i guess i should revise once :sweat:@onepunch_man


#4

Take your time @vinayakkad , do some exercises and it'll be more easy :relaxed: