Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 2, 2014 20:02
Show Gist options
  • Save devdays/db1aaf324f247a80d3bb to your computer and use it in GitHub Desktop.
Save devdays/db1aaf324f247a80d3bb to your computer and use it in GitHub Desktop.
Object JavaScript - Using Constructors
var laundryTask = new Task("get shirts", 1, "low", false);
var shoppingTask = new Task("groceries", 3, "high", false);
console.log(JSON.stringify(laundryTask));
console.log(JSON.stringify(shoppingTask));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment