-
-
Save codecademydev/8755c2772021e9b92785c557a67b2647 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var james = { | |
job: "programmer", | |
married: false, | |
sayJob: function() { | |
console.log("Hi, I work as a " + this.job); // complete this method | |
} | |
}; | |
// james' first job | |
james.sayJob(); | |
// change james' job to "super programmer" here | |
james.job = "super programmer"; | |
// james' second job | |
james.sayJob(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment