Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 12, 2016 02:11
Show Gist options
  • Save codecademydev/7f43d9493ca6785ec28776e89a4915bb to your computer and use it in GitHub Desktop.
Save codecademydev/7f43d9493ca6785ec28776e89a4915bb to your computer and use it in GitHub Desktop.
Codecademy export
var james = {
job: "programmer",
married: false// add properties to this object!
};
function Person(job, married) {
this.job = job;
this.married = married;
}
// create a "gabby" object using the Person constructor!
var gabby = new Person("student", true);
console.log(gabby);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment