Skip to content

Instantly share code, notes, and snippets.

@stevencombs
Created September 30, 2013 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencombs/6771560 to your computer and use it in GitHub Desktop.
Save stevencombs/6771560 to your computer and use it in GitHub Desktop.
// Javascript Getting Started with Programming
// A Codecademy Javascript (An Object Review) assignment
// Dr. Steven B. Combs, coding novice
// Create Object Template
function Person(job, married) {
this.job = job;
this.married = married;
}
// Literal construct
var james = {
job: "programmer",
married: false
};
// Constructor format using template to create object
var gabby = new Person("student", true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment