Introduction to objects II 1/30


#1


https://www.codecademy.com/courses/objects-ii/0/1?curriculum_id=506324b3a7dffd00020bf661#


Oops, try again. There was a problem with your syntax.


var obj = {
property: "value",
otherProp: 42
};
so in your case
var james = {
   job:"programmer",
    married: false
};
function Person(job, married) {
    this.job = job;
    this.married = married;
}


#2

remove this line

so in your case


#3

now it says

Oops, try again. Make sure you properly declared an object called gabby using the Person constructor. Your code threw the following error when testing gabby: ReferenceError: gabby is not defined
i think i fix this tho
var obj = {
property: "value",
otherProp: 42
};

var james = {
job:"programmer",
married: false
};
function Person(job, married) {
this.job = job;
this.married = married;
}


#4

instruction:

Create a new gabby object using the Person constructor. She should have a job of "student" and her married property should be true.

so do it :slight_smile:


#5

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