1. An Objective Review


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);


To create new object you need:

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


you forgot to put new before gabby

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


Thanks a lot. This one is correct :slight_smile:


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