Created
December 2, 2014 20:02
-
-
Save devdays/db1aaf324f247a80d3bb to your computer and use it in GitHub Desktop.
Object JavaScript - Using Constructors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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