Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 2, 2014 20:02
  • 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 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