Skip to content

Instantly share code, notes, and snippets.

@lossness
Created June 26, 2017 01:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lossness/f64d78cb4589de7478dcd3994d48c0b9 to your computer and use it in GitHub Desktop.
Code check
var james = {
job: "programmer",
married: false,
sayJob: function() {
console.log("Hi, I work as a " + james.job);
}
};
// 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