Don't see error in code but it bombs out


#1

var james = {
job: "programmer",
married: false,
sayJob: function() {
// complete this method
console.log("Hi, I work as a " + this.job);
}
};

// james' first job
james.sayJob();

// change james' job to "super programmer" here
james.Job = "super programmer";

// james' second job
james.sayJob();

It prints the job programmer twice and says that it looks like I forgot to change the title to super programmer.


#2

JavaScript is case sensitive so we must write variables exactly as they have been declared:

    james.job =  ...

#3

Ahhhh. thanks. Being that this was pre written and we are only instructed to change the job title, was this part of the lesson or a typo on codecademy's part?


#4

Are we talking about this exercise: https://www.codecademy.com/en/courses/objects-ii/0/4 ?

This is the preset state of exercise 4

var james = {
    job: "programmer",
    married: false,
    sayJob: function() {
        // complete this method
        
    }
};

// james' first job
james.sayJob();

// change james' job to "super programmer" here


// james' second job
james.sayJob();

As we can see the capital is embedded in a method name written in camelCase.