1. An Objective Review


#1


It says "Make sure james is an object"..I don't know where am i making mistake.


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

function Person(job, married) {
    this.job = job;
    this.married = married;
};

// create a "gabby" object using the Person constructor!
new Person = gabby("student", true);
    .


#2

To create new object you need:

var gabby = new Person("student", true);

#3

you forgot to put new before gabby

eg: new Person = new gabby("student", true);


#4

Thanks a lot. This one is correct :slight_smile:


#5

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