1. An Objective Review: "make sure james is an object"


Introduction to Objects II: An Objective Review

Console Error Message: ReferenceError: Invalid left-hand side in assignment
Popup Error Message: Oops, try again. Make sure james is an object

var james = {
    job: 'programmer',
    married: false

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

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

Please help. I do not understand why the error is appearing.


You're doing something upside down here: new Person = gabby("student",true);
You need to pass arguments to Person object not gabby, gabby should be a variable that holds an instance of Person's object.


Solved it! Thanks for the help!