An Objective Review 1/30


#1

I am pretty sure this is supposed to work but it just doesn't. Can someone please take a look. Thanks in advance!!

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 = {
job = "student",
married = true
};

when i try to pass it says:
Oops, try again. There was a problem with your syntax.


#2

@seljanz

Create gabby with the Person Constructor.Remember an instance from an object looks like this:

var instanceName = new ObjectName(optional parameters to input);

#3

but even like that it still dosen't work


#4

@seljanz

We are not trying to create gabby instance like this. We create it using Person constructor.

This thing is called a quote. I quoted something you said in your post so you can find yourself and understand what I am talking about.