Why my code is not working?


#1


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


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


  var james = {
    // add properties to this object!
    job:"programmer",
     married:false ;
    
};

function Person(job, married) {
    this.job = job;
    this.married = married;
properties are defined within the }

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


#2

properties are defined within the

this should be a comment? and then make sure } is outside the comment


#3

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