5/20 why isn't it working!


#1

Every time I click Save & Submit Code, it says :Oops, try again. Do you have the variable 'aProperty' between brackets?

Here's my code


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


What's Wrong!:angry:


#2

console.log("Hi, I work as a",this.job);
                             ^

I believe that when connecting a string and a variable you have to use a plus " + " sign, like so:

console.log("Hi, I work as a" + this.job);
                              ^